hawkeye
hawkeye copied to clipboard
RedHat/CentOS 7 startup scripts
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