From ae2473c2ca07cf5173a3dab22bc64e7b135ef848 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Fri, 21 Mar 2014 18:08:16 +0100 Subject: systemd: Do not restart with a broken config file or such Only restart in case of a crash or the exit(42) when the OML/RSL link is going down. --- contrib/sysmobts.service | 1 + 1 file changed, 1 insertion(+) (limited to 'contrib/sysmobts.service') diff --git a/contrib/sysmobts.service b/contrib/sysmobts.service index cf6aa1aa..9ac51e90 100644 --- a/contrib/sysmobts.service +++ b/contrib/sysmobts.service @@ -9,6 +9,7 @@ ExecStopPost=/bin/sh -c 'echo 0 > /sys/class/leds/activity_led/brightness' ExecStopPost=/bin/sh -c 'cat /lib/firmware/sysmobts-v?.bit > /dev/fpgadl_par0 ; sleep 3s; cat /lib/firmware/sysmobts-v?.out > /dev/dspdl_dm644x_0; sleep 1s' Restart=always RestartSec=2 +RestartPreventExitStatus=1 # The msg queues must be read fast enough CPUSchedulingPolicy=rr -- cgit v1.2.3