Skip to content

Commit

Permalink
Update systemd service
Browse files Browse the repository at this point in the history
In case the service stops for w/e reason it will stay so. By adding Restart=always it is made sure the push server always runs

Signed-off-by: Rinkana <[email protected]>
  • Loading branch information
MrRinkana authored Oct 23, 2024
1 parent 1f49088 commit c592610
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ ExecStart = /path/to/push/binary/notify_push /path/to/nextcloud/config/config.ph
# requires the push server to have been build with the systemd feature (enabled by default)
Type=notify
User=www-data
Restart=always
RestartSec=60

[Install]
WantedBy = multi-user.target
Expand Down

1 comment on commit c592610

@MrRinkana
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Restart sec was chosen arbitrarily with the intent to not spam restart attempts if it fails on startup, there might be better ways to do this

Please sign in to comment.