Skip to content

Commit dd3b0e9

Browse files
authored
skip errors in rm
Lock files may not exists, so show no error please!
1 parent 6fec650 commit dd3b0e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sinusbot.service

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ After=syslog.target network.target
44

55
[Service]
66
User=YOURUSER
7-
ExecStartPre=rm /tmp/.sinusbot.lock
8-
ExecStopPost=rm /tmp/.sinusbot.lock
7+
ExecStartPre=rm -f /tmp/.sinusbot.lock
8+
ExecStopPost=rm -f /tmp/.sinusbot.lock
99
ExecStart=YOURPATH_TO_THE_BOT_BINARY
1010
WorkingDirectory=YOURPATH_TO_THE_BOT_DIRECTORY
1111
Type=simple

0 commit comments

Comments
 (0)