Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Init script #35

Open
BillyCroan opened this issue Jun 14, 2022 · 0 comments
Open

Init script #35

BillyCroan opened this issue Jun 14, 2022 · 0 comments

Comments

@BillyCroan
Copy link

I just installed from git and it appears that no init script gets installed by default. I will share the systemd script I created for my system:

# cat /etc/systemd/system/battery-stats-collector.service 
[Unit]
Description = battery-stats-collector daemon

[Service]
Type = simple
PIDFile = /run/battery-stats-collector.pid
ExecStart = /usr/local/sbin/battery-stats-collector
Restart = on-abort
StartLimitInterval = 60
StartLimitBurst = 10

[Install]
WantedBy = multi-user.target

The config file /etc/battery-stats.conf, refers to a certain /etc/init.d/battery-stats script for INIT based systems:

# Default configuration for battery-stats-collector
#
# This file is sourced from /etc/init.d/battery-stats ; it should follow normal
# /bin/sh syntax.
.....

But no such init script is installed during make install, or indeed appears to be present in the git repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant