Skip to content
Snippets Groups Projects
Commit 4e36f01f authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner
Browse files

The watchdog might not be installed

So don't try to revive it if it is not installed.
parent f10fd4d0
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
# Copyright (c) 2013, CZ.NIC, z.s.p.o. (http://www.nic.cz/)
# Copyright (c) 2013-2014, CZ.NIC, z.s.p.o. (http://www.nic.cz/)
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
......@@ -28,7 +28,10 @@
set -ex
# Configuration
SERVICES="ucollect nethist"
SERVICES="ucollect"
if [ -e '/etc/init.d/nethist' ] ; then
SERVICES="$SERVICES nethist"
fi
TEMPFILE=/tmp/watchdog.tmp.$$
trap 'rm "$TEMPFILE"' EXIT INT QUIT TERM
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment