Skip to content

Commit 96fe8cd

Browse files
committed
Update method to check network connection
1 parent ab8cd68 commit 96fe8cd

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

systemd_services/basedcount_bot.service

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[Unit]
22
Description=Runs basedcount_bot
33
Wants=basedcount_bot_backup.service
4-
After=network-online.target
5-
Requires=network-online.target
4+
After=default.target
65

76
[Service]
87
Type=simple
8+
ExecStartPre=/bin/sh -c 'until ping -c1 google.com; do sleep 1; done;'
99
WorkingDirectory=%h/Programming/Bots/basedcount_bot
1010
ExecStart=%h/Programming/Bots/basedcount_bot/basedcount_bot.py
1111
Restart=always

systemd_services/basedcount_bot_backup.service

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
[Unit]
22
Description=Runs basedcount_bot backup and cheating
3-
After=network-online.target
4-
Requires=network-online.target
3+
After=default.target
54

65
[Service]
76
Type=oneshot

0 commit comments

Comments
 (0)