summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-fs/intersync/files/intersync.rc')
-rw-r--r--net-fs/intersync/files/intersync.rc29
1 files changed, 29 insertions, 0 deletions
diff --git a/net-fs/intersync/files/intersync.rc b/net-fs/intersync/files/intersync.rc
new file mode 100644
index 000000000000..7fac76c7d84f
--- /dev/null
+++ b/net-fs/intersync/files/intersync.rc
@@ -0,0 +1,29 @@
+#!/sbin/runscript
+
+depend() {
+ need net logger
+}
+
+checkconfig() {
+ if [ "x$CACHE" == "x" ]; then
+ eerror "Please set CACHE in /etc/conf.d/intersync"
+ return 1
+ fi
+ return 0
+}
+
+start() {
+ checkconfig || return $?
+ ebegin "Starting intersync"
+ start-stop-daemon --start --pidfile /var/run/intersync.pid \
+ --startas /usr/bin/intersync -- $CLIENT_OPTS $CACHE
+ eend $? "Failed to start intersync"
+}
+
+stop() {
+ ebegin "Stopping intersync"
+ start-stop-daemon --stop --quiet --pidfile /var/run/intersync.pid
+ eend $? "Failed to stop intersync"
+}
+
+ \ No newline at end of file