pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/net/netatalk3/files
Module Name: pkgsrc
Committed By: christos
Date: Mon Nov 7 00:42:32 UTC 2016
Added Files:
pkgsrc/net/netatalk3/files: netatalk netatalk_smf.sh
Log Message:
new startup scripts
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/net/netatalk3/files/netatalk \
pkgsrc/net/netatalk3/files/netatalk_smf.sh
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: pkgsrc/net/netatalk3/files/netatalk
diff -u /dev/null pkgsrc/net/netatalk3/files/netatalk:1.1
--- /dev/null Sun Nov 6 19:42:32 2016
+++ pkgsrc/net/netatalk3/files/netatalk Sun Nov 6 19:42:32 2016
@@ -0,0 +1,18 @@
+#!/bin/sh
+#
+# $NetBSD: netatalk,v 1.1 2016/11/07 00:42:32 christos Exp $
+#
+
+# PROVIDE: netatalk
+# REQUIRE: NETWORKING mountcritremote syslogd
+
+$_rc_subr_loaded . /etc/rc.subr
+
+name="netatalk"
+rcvar=$name
+command="/usr/pkg/libexec/netatalk/${name}"
+pidfile="/var/run/${name}.pid"
+required_files="/etc/${name}/afp.conf /etc/${name}/extmap.conf"
+
+load_rc_config $name
+run_rc_command "$1"
Index: pkgsrc/net/netatalk3/files/netatalk_smf.sh
diff -u /dev/null pkgsrc/net/netatalk3/files/netatalk_smf.sh:1.1
--- /dev/null Sun Nov 6 19:42:32 2016
+++ pkgsrc/net/netatalk3/files/netatalk_smf.sh Sun Nov 6 19:42:32 2016
@@ -0,0 +1,32 @@
+#!@SMF_METHOD_SHELL@
+#
+# SunOS SMF start/stop/refresh "methods" script for Netatalk 3
+
+# $NetBSD: netatalk_smf.sh,v 1.1 2016/11/07 00:42:32 christos Exp $
+
+PIDFILE=@VARBASE@/run/netatalk.pid
+
+case $1 in
+'start')
+ @PREFIX@/libexec/netatalk/netatalk
+ ;;
+
+'stop')
+ if [ -f "$PIDFILE" ]; then
+ /usr/bin/kill `/usr/bin/head -1 $PIDFILE`
+ fi
+ ;;
+
+'refresh')
+ if [ -f "$PIDFILE" ]; then
+ /usr/bin/kill -HUP `/usr/bin/head -1 $PIDFILE`
+ fi
+ ;;
+
+*)
+ echo "Usage: $0 { start | stop | refresh }"
+ exit 1
+ ;;
+esac
+
+exit $?
Home |
Main Index |
Thread Index |
Old Index