dorchain / dcfshm

dcf77 radio clock ntp shm parser
1 stars 0 forks source link

systemd service file #5

Closed goerdi closed 4 months ago

goerdi commented 5 months ago

Does anybody have a systemd service file ?

goerdi commented 4 months ago

Ok made one

`# Description: Custom Service Unit file

File: /etc/systemd/system/dcfshm.service

[Unit] Description="SHM parser for Gude USB DCF77 clock "

[Service] Type=forking ExecStart=/usr/local/bin/dcfshm_start.sh

[Install] WantedBy=multi-user.target ` the script

#!/bin/bash # rm /var/run/dcfshm.pid /usr/local/bin/dcfshm -b 4800 -f /dev/refclock-1 (edit this to your requirements)

Ciao Gerd