Codebase list battery-stats / 1f54126
Add systemd unit in addition to init script. Aurélien COUDERC 4 years ago
3 changed file(s) with 16 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 [Unit]
1 Description=Battery statistics collector
2 After=remote-fs.target
3
4 [Service]
5 Type=simple
6 Environment="SYS_ARGS=--syslog --output /var/log/battery-stats"
7 Environment="ARGS=--interval=60 --flush=10 --ignore-missing-battery"
8 # /etc/battery-stats.conf can be used to override the above parameters
9 EnvironmentFile=/etc/battery-stats.conf
10 ExecStart=/bin/sh -c "/usr/sbin/battery-stats-collector $SYS_ARGS $ARGS"
11
12 [Install]
13 WantedBy=multi-user.target
1212 /lib/lsb/init-functions.
1313 * Switch to debhelper-compat build dependency, bump compatibility level to
1414 12.
15 * Add systemd unit in addition to init script.
1516
1617 -- Ondřej Nový <onovy@debian.org> Mon, 01 Oct 2018 09:56:14 +0200
1718
1414
1515 Package: battery-stats
1616 Architecture: linux-any
17 Pre-Depends: ${misc:Pre-Depends}
1718 Depends: ${shlibs:Depends}, ${misc:Depends},
1819 logrotate,
1920 lsb-base,