hawkeye icon indicating copy to clipboard operation
hawkeye copied to clipboard

RedHat/CentOS 7 startup scripts

Open hyppoCom opened this issue 6 years ago • 0 comments

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

hyppoCom avatar Sep 27 '18 22:09 hyppoCom