aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/lib/functions/service.sh
diff options
context:
space:
mode:
authorLuka Perkov <luka@openwrt.org>2013-12-09 11:30:14 +0000
committerLuka Perkov <luka@openwrt.org>2013-12-09 11:30:14 +0000
commitd723a38780ea983a8b8a0a6c834ad9d5312e43eb (patch)
treee1b8d817ec4469a466191b46fd471c5983a4ac79 /package/base-files/files/lib/functions/service.sh
parent8392c54e2eac4f3181ebfe0d4197d21236e9aae8 (diff)
downloadupstream-d723a38780ea983a8b8a0a6c834ad9d5312e43eb.tar.gz
upstream-d723a38780ea983a8b8a0a6c834ad9d5312e43eb.tar.bz2
upstream-d723a38780ea983a8b8a0a6c834ad9d5312e43eb.zip
[package] base-files: fix whitespaces
Signed-off-by: Luka Perkov <luka@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39006 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files/files/lib/functions/service.sh')
-rw-r--r--package/base-files/files/lib/functions/service.sh39
1 files changed, 18 insertions, 21 deletions
diff --git a/package/base-files/files/lib/functions/service.sh b/package/base-files/files/lib/functions/service.sh
index cbb717d4d0..d352a441cc 100644
--- a/package/base-files/files/lib/functions/service.sh
+++ b/package/base-files/files/lib/functions/service.sh
@@ -4,27 +4,27 @@
# Usage: service ACTION EXEC ARGS...
#
# Action:
-# -C check if EXEC is alive
-# -S start EXEC, passing it ARGS as its arguments
-# -K kill EXEC, sending it a TERM signal if not specified otherwise
+# -C check if EXEC is alive
+# -S start EXEC, passing it ARGS as its arguments
+# -K kill EXEC, sending it a TERM signal if not specified otherwise
#
# Environment variables exposed:
-# SERVICE_DAEMONIZE run EXEC in background
-# SERVICE_WRITE_PID create a pid-file and use it for matching
-# SERVICE_MATCH_EXEC use EXEC command-line for matching (default)
-# SERVICE_MATCH_NAME use EXEC process name for matching
-# SERVICE_USE_PID assume EXEC create its own pid-file and use it for matching
-# SERVICE_NAME process name to use (default to EXEC file part)
-# SERVICE_PID_FILE pid file to use (default to /var/run/$SERVICE_NAME.pid)
-# SERVICE_SIG signal to send when using -K
-# SERVICE_SIG_RELOAD default signal used when reloading
-# SERVICE_SIG_STOP default signal used when stopping
-# SERVICE_STOP_TIME time to wait for a process to stop gracefully before killing it
-# SERVICE_UID user EXEC should be run as
-# SERVICE_GID group EXEC should be run as
+# SERVICE_DAEMONIZE run EXEC in background
+# SERVICE_WRITE_PID create a pid-file and use it for matching
+# SERVICE_MATCH_EXEC use EXEC command-line for matching (default)
+# SERVICE_MATCH_NAME use EXEC process name for matching
+# SERVICE_USE_PID assume EXEC create its own pid-file and use it for matching
+# SERVICE_NAME process name to use (default to EXEC file part)
+# SERVICE_PID_FILE pid file to use (default to /var/run/$SERVICE_NAME.pid)
+# SERVICE_SIG signal to send when using -K
+# SERVICE_SIG_RELOAD default signal used when reloading
+# SERVICE_SIG_STOP default signal used when stopping
+# SERVICE_STOP_TIME time to wait for a process to stop gracefully before killing it
+# SERVICE_UID user EXEC should be run as
+# SERVICE_GID group EXEC should be run as
#
-# SERVICE_DEBUG don't do anything, but show what would be done
-# SERVICE_QUIET don't print anything
+# SERVICE_DEBUG don't do anything, but show what would be done
+# SERVICE_QUIET don't print anything
#
SERVICE_QUIET=1
@@ -124,6 +124,3 @@ __END_OF_WARNING__
while grep -qs "$name" "/proc/$pid/cmdline"; do sleep 1; done
done
}
-
-
-