summaryrefslogtreecommitdiff
path: root/config/systemd/power-logger.service
blob: 8774f967507d48282d0aaa9dc5e09dded5e6eeb3 (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=power-logger
After=network.target
StartLimitIntervalSec=0

[Service]
Type=simple
Restart=always
RestartSec=1
User=power-logger
Group=power-logger
Environment=GEM_HOME=/usr/local/lib/ruby/gems
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=power-logger
PIDFile=/run/power_logger/logger.pid
PermissionsStartOnly=true
ExecStartPre=mkdir -p /run/power_logger /var/log/power_logger /usr/local/share/power_logger
ExecStartPre=rm -f /run/power_logger/receiver.pid
ExecStartPre=chown -R power-logger:power-logger /run/power_logger /var/log/power_logger /usr/local/share/power_logger
ExecStopPost=rm -f /run/power_logger/logger.pid
ExecStart=/usr/local/src/power_logger/power-logger

[Install]
WantedBy=multi-user.target