File: bluemon.service

package info (click to toggle)
bluemon 1.4-12
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 292 kB
  • sloc: ansic: 2,567; makefile: 305; sh: 104; xml: 24
file content (17 lines) | stat: -rw-r--r-- 598 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
[Unit]
Description=bluemon, bluemon
Documentation=man:bluemon(1)

[Service]
Type=oneshot
EnvironmentFile=-/etc/default/bluemon
EnvironmentFile=-/etc/bluemon/bluemon.config
EnvironmentFile=-/etc/bluemon.config
Environment=DAEMON=/usr/sbin/bluemon
ExecStart=-/bin/sh -c 'if [ "$BLUEMON_ENABLE" = "yes" ]; then BTIDS=""; for i in $BLUETOOTHID; do BTIDS="$BTIDS -b $i"; done; $DAEMON -t $THRESHOLD $BTIDS -i $VERBOSE $DISCONNECTHACK $QUALITY; else echo "disabled in /etc/default/bluemon"; exit 0; fi;'
Restart=on-failure
SyslogFacility=bluemon
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target