From ecb7a93073835d6c78f013ae2df8c13c14c3b589 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Fri, 18 Dec 2020 06:32:18 +0100 Subject: [PATCH] bundles/pppd: silence restart-pppoe-if-no-public-ip --- bundles/pppd/files/restart-pppoe-if-no-public-ip | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bundles/pppd/files/restart-pppoe-if-no-public-ip b/bundles/pppd/files/restart-pppoe-if-no-public-ip index 04e1fcd..fcd1864 100644 --- a/bundles/pppd/files/restart-pppoe-if-no-public-ip +++ b/bundles/pppd/files/restart-pppoe-if-no-public-ip @@ -16,7 +16,6 @@ except: last_restart = 0 if now-3600 < last_restart: - print('Last restart is less than an hour ago, exiting ...') exit(0) ifaces = set() @@ -41,6 +40,6 @@ if not system_has_public_ip: run(['systemctl', 'restart', 'pppoe']) with open('/var/tmp/pppd-last-restart.status', 'w') as f: - f.write(now) + f.write(str(now)) print('pppoe.service has been restarted')