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

RedHat/CentOS 7 startup scripts #18

Open
hyppoCom opened this issue Sep 27, 2018 · 0 comments
Open

RedHat/CentOS 7 startup scripts #18

hyppoCom opened this issue Sep 27, 2018 · 0 comments

Comments

@hyppoCom
Copy link

hyppoCom commented Sep 27, 2018

Here's a startup script compatible with the new style of startup scripts of RedHat/CentOS since 7 and other modern distros.
Place the file in /etc/systemd/system/

File: /etc/systemd/system/hawkeye.service

[Unit]
Description=Hawkeye Webcam server
After=network.target systemd-udevd.service

[Service]
Type=simple
Environment=TERM=linux USER=apache LOGNAME=apache HOME=/var/lib/hawkeye
WorkingDirectory=/var/lib/hawkeye
ExecStart=/usr/bin/hawkeye -c /etc/hawkeye/hawkeye.conf
Restart=always
RestartSec=1

[Install]
WantedBy=multi-user.target

hawkeye.service.txt

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