Skip to content

Commit 499ca54

Browse files
README
1 parent bb31cde commit 499ca54

File tree

1 file changed

+0
-0
lines changed

1 file changed

+0
-0
lines changed

README.md

-322 Bytes
cd /etc/systemd/system
sudo touch hackernewsd.service
sudo tee -a hackernewsd.service > /dev/null <<EOT
[Unit]
Description=hackernewsd

[Service]
WorkingDirectory=/bin
ExecStart=/bin/hackernewsd
Restart=always
# Restart service after 10 seconds if the service crashes:
RestartSec=10
KillSignal=SIGINT
SyslogIdentifier=log.hackernewsd
TimeoutStopSec=30

[Install]
WantedBy=multi-user.target
EOT

sudo systemctl start hackernewsd
sudo systemctl enable hackernewsd

TODO, this systemd thing doesnt work, it tries to run as root. try https://askubuntu.com/questions/1371102/running-systemd-service-as-user-rather-than-root

Build from source

  1. Install the dependency list

0 commit comments

Comments
 (0)