diff options
Diffstat (limited to 'net-misc/omnisync/files/omnisync.initd')
-rw-r--r-- | net-misc/omnisync/files/omnisync.initd | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/net-misc/omnisync/files/omnisync.initd b/net-misc/omnisync/files/omnisync.initd new file mode 100644 index 000000000000..7820af6e94e3 --- /dev/null +++ b/net-misc/omnisync/files/omnisync.initd @@ -0,0 +1,20 @@ +#!/sbin/openrc-run +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + use net +} + +command="/usr/sbin/omnisync" +command_args="-M ${OMNISYNC_MODE} ${OMNISYNC_ARGS}" + +start_pre() { + if [ -z "${OMNISYNC_MODE}" ] ; then + eerror 'Configuration incomplete! OMNISYNC_MODE not set' + return 1 + fi + return 0 +} + +# vim: filetype=gentoo-init-d sw=2 ts=2 sts=2 noet: |