ipartola / hawkeye

An simple and fast USB webcam MJPEG streaming server.
Other
206 stars 28 forks source link

RedHat/CentOS 7 startup scripts #18

Open hyppoCom opened 5 years ago

hyppoCom commented 5 years ago

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