You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Daemon that notifies you of any stories that match your list of queries.
Install - Windows
TODO!!!!!
Create in your home folder (C:\Users\YOUR_USERNAME) a file called ".hackernewsdrc".
Replace the queries in the example below with whatever keywords you want the daemon to look for
Create in your home folder (/home/YOUR_USERNAME) a file called ".hackernewsdrc".
Replace the queries in the example below with whatever keywords you want the daemon to look for
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
User=USER_HERE
TimeoutStopSec=30
[Install]
WantedBy=multi-user.target
EOT
sudo sed -i -e "s/USER_HERE/$USER/g" hackernewsd.service
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
0 commit comments