Skip to content

RedHat/CentOS 7 startup scripts #18

@hyppoCom

Description

@hyppoCom

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions