summarylogtreecommitdiffstats
path: root/lfbw@.service
blob: 3f42c48c56c10b42b8d40375c90f19d4777876c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
[Unit]
Description =Fake Background Webcam - frame-source /dev/video%i -> /dev/video2%i
Requires=dbus.socket


[Service]
Type = simple
Environment="IMAGE_FOLDER=/var/lib/lfbw/default"
ExecStartPre=modprobe v4l2loopback video_nr=2%i card_label="Fake background %i" exclusive_caps=1


ExecStart=/usr/bin/lfbw \
    -c /etc/lfbw/config.ini  \
    --webcam-path /dev/video%i  \
    --v4l2loopback-path /dev/video2%i

    
ExecReload=/bin/kill -s INT $MAINPID
ExecStopPost=-modprobe -r v4l2loopback


[Install]
#WantedBy=sockets.target
WantedBy=default.target