aboutsummaryrefslogtreecommitdiff
path: root/x11/slim
diff options
context:
space:
mode:
authorChris Rees <crees@FreeBSD.org>2013-05-31 11:54:01 +0000
committerChris Rees <crees@FreeBSD.org>2013-05-31 11:54:01 +0000
commit16eb7c2ca089906fc35060aac00e8522c52a2fd9 (patch)
tree0b5233ed2a1bc25f12dc9d56da8b18ad62e8ca06 /x11/slim
parent9aa023d98b38b00ce99f700f2ec5c2506051ee51 (diff)
downloadports-16eb7c2ca089906fc35060aac00e8522c52a2fd9.tar.gz
ports-16eb7c2ca089906fc35060aac00e8522c52a2fd9.zip
Notes
Diffstat (limited to 'x11/slim')
-rw-r--r--x11/slim/files/slim.in18
1 files changed, 8 insertions, 10 deletions
diff --git a/x11/slim/files/slim.in b/x11/slim/files/slim.in
index 040b3558aa5b..5fba5c27ecc6 100644
--- a/x11/slim/files/slim.in
+++ b/x11/slim/files/slim.in
@@ -19,28 +19,26 @@
name="slim"
rcvar=slim_enable
-start_precmd=${name}_rmfile
-stop_precmd=${name}_prestop
-stop_postcmd=${name}_rmfile
-
-load_rc_config $name
+load_rc_config slim
-: ${slim_enable="NO"}
+: ${slim_enable:="NO"}
command=%%PREFIX%%/bin/slim
command_args="-d"
+start_precmd=${name}_rmfile
+stop_precmd=${name}_prestop
+stop_postcmd=${name}_rmfile
find_pidfile()
{
- if type get_pidfile_from_conf >/dev/null 2>&1 &&
- get_pidfile_from_conf lockfile %%PREFIX%%/etc/${name}.conf; then
+ if get_pidfile_from_conf lockfile %%PREFIX%%/etc/${name}.conf; then
pidfile="$_pidfile_from_conf"
else
pidfile="/var/run/${name}.pid"
fi
}
-slim_rmfile ()
+slim_rmfile()
{
local file
@@ -54,7 +52,7 @@ slim_rmfile ()
return 0
}
-slim_prestop ()
+slim_prestop()
{
local xpid