Skip to content

Commit

Permalink
Update systemd service file to always restart.
Browse files Browse the repository at this point in the history
  • Loading branch information
ptx2 committed Oct 9, 2020
1 parent 38109da commit 54659c6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
11 changes: 7 additions & 4 deletions deploy/gymnasticon.service
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,21 @@
Description=Gymnasticon
After=bluetooth.target
Requires=bluetooth.target
StartLimitIntervalSec=0

[Service]
Type=simple
Environment=
WorkingDirectory=/home/pi
Environment=PATH=/opt/gymnasticon/node/bin
WorkingDirectory=/opt/gymnasticon
User=pi
Group=pi
ExecStart=/usr/local/bin/gymnasticon --server-ping-interval=6
ExecStart=/opt/gymnasticon/node/bin/gymnasticon
RestartSec=1
Restart=on-failure
Restart=always

AmbientCapabilities=CAP_NET_RAW CAP_NET_ADMIN
NoNewPrivileges=true

[Install]
WantedBy=multi-user.target

Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Description=Gymnasticon
After=bluetooth.target
Requires=bluetooth.target
StartLimitIntervalSec=0

[Service]
Type=simple
Expand All @@ -11,7 +12,7 @@ User=pi
Group=pi
ExecStart=/opt/gymnasticon/node/bin/gymnasticon
RestartSec=1
Restart=on-failure
Restart=always

AmbientCapabilities=CAP_NET_RAW CAP_NET_ADMIN
NoNewPrivileges=true
Expand Down

0 comments on commit 54659c6

Please sign in to comment.