File: uhub.service

package info (click to toggle)
uhub 0.5.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,624 kB
  • sloc: ansic: 19,102; xml: 607; perl: 463; sh: 403; python: 239; makefile: 9
file content (23 lines) | stat: -rw-r--r-- 535 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
[Unit]
Description=ADC hub
Documentation=man:uhub(1)
After=network.target
Wants=network.target

[Service]
Type=forking
PIDFile=/run/uhub/uhub.pid
EnvironmentFile=-/etc/default/uhub
ExecStartPre=/bin/mkdir -p /run/uhub
ExecStartPre=/bin/chmod 755 /run/uhub
ExecStart=/usr/bin/uhub -l /var/log/uhub/uhub.log -f -p /run/uhub/uhub.pid
ExecStop=/bin/kill -TERM $MAINPID
Restart=on-failure
LimitNOFILE=65536
User=root
Group=root
# Only start if UHUB_ENABLE is true
ConditionEnvironment=UHUB_ENABLE=true

[Install]
WantedBy=multi-user.target