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

Systemd unit file #12

Open
isdn opened this issue Jul 24, 2021 · 0 comments
Open

Systemd unit file #12

isdn opened this issue Jul 24, 2021 · 0 comments

Comments

@isdn
Copy link

isdn commented Jul 24, 2021

I would suggest the following systemd unit file to manage service.

The unit file (/lib/systemd/system/fancontrol.service):

[Unit]
Description=Fan control service
After=syslog.target multi-user.target

[Service]
Type=idle
ExecStart=/usr/local/bin/fancontrol.py &

[Install]
WantedBy=multi-user.target

It should be owned by root and have the 644 mode.

Then:

sudo systemctl daemon-reload
sudo systemctl enable fancontrol.service
sudo systemctl start fancontrol.service
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