Skip to content

Commit

Permalink
Automatic restart on systemd
Browse files Browse the repository at this point in the history
  • Loading branch information
pascal-fb-martin committed Oct 18, 2024
1 parent 8d85832 commit 237f36f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions systemd.service
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@
Description=The house time synchronization server
After=network-online.target houseportal.service
Conflicts=systemd-timesyncd.service
StartLimitIntervalSec=500
StartLimitBurst=5

[Service]
Restart=on-failure
RestartSec=50s
Environment="GPSOPTS=" "NTPOPTS=-ntp-period=10" "HTTPOPTS=" "OTHEROPTS="
EnvironmentFile=-/etc/default/houseclock
EnvironmentFile=-/etc/sysconfig/houseclock
Expand Down

0 comments on commit 237f36f

Please sign in to comment.