blob: 7a09a0fcc75e340cb0b79dfbeecb7cbaaf4ce286 (
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
25
|
[Unit]
Description =Fake Background Webcam - frame-source /dev/video%i -> /dev/video2%i
Requires=dbus.socket
[Service]
Type = simple
WorkingDirectory=/usr/lib/fake-background-webcam
Environment="IMAGE_FOLDER=/var/lib/fake-background-webcam/default"
ExecStartPre=modprobe v4l2loopback video_nr=2%i card_label="Fake background %i" exclusive_caps=1
ExecStart=/usr/bin/python fake.py \
-c /etc/fake-background-webcam/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
|