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 service file for CentOS/Fedora #816

Closed
carlbennett opened this issue Jun 7, 2019 · 1 comment
Closed

Systemd service file for CentOS/Fedora #816

carlbennett opened this issue Jun 7, 2019 · 1 comment

Comments

@carlbennett
Copy link
Contributor

I've been using this service file with Systemd on Fedora since I started using this project earlier this year. It's always worked for me. I left the commented Exec lines because that's how it's documented to behave as a service, but I found them not necessary.

[Unit]
Description=AdGuard Home
Documentation=https://github.com/AdguardTeam/AdGuardHome
After=network.target

[Service]
Type=simple
User=root
WorkingDirectory=/opt/AdGuardHome
ExecStart=/opt/AdGuardHome/AdGuardHome
#KillSignal=SIGINT
#ExecStart=/opt/AdGuardHome/AdGuardHome -s start
#ExecRestart=/opt/AdGuardHome/AdGuardHome -s restart
#ExecStop=/opt/AdGuardHome/AdGuardHome -s stop
Restart=on-failure

[Install]
WantedBy=multi-user.target
@ameshkov
Copy link
Member

ameshkov commented Jun 7, 2019

Thank you!

Merging into #765

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

2 participants