Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
openSUSE:Leap:15.1:ARM:Staging
kopano
debian.kopano-presence.init
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File debian.kopano-presence.init of Package kopano
#! /bin/sh # ### BEGIN INIT INFO # Provides: kopano-presence # Required-Start: $syslog $network $remote_fs # Required-Stop: $syslog $network $remote_fs # Should-Start: kopano-server # Should-Stop: kopano-server # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: # Description: ### END INIT INFO PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin PRESENCE=/usr/sbin/kopano-presence DESC="presence" NAME=`basename $PRESENCE` #QUIETDAEMON=--quiet PIDFILE=/var/run/kopano/presence.pid test -x $PRESENCE || exit 0 # Include defaults if available if [ -f /etc/default/kopano ] ; then . /etc/default/kopano fi if [ -z "$KOPANO_LOCALE" ]; then KOPANO_LOCALE="C" fi if [ -e "$PRESENCE_CONFIG" ]; then PRESENCE_OPTS="$PRESENCE_OPTS -c $PRESENCE_CONFIG" fi #set -e . /lib/lsb/init-functions case "$1" in start) if [ "$PRESENCE_ENABLED" = "no" ]; then log_warning_msg "presence daemon not enabled in /etc/default/kopano ... not starting" exit 0 fi log_begin_msg "Starting $DESC: $NAME" install -dm0775 -o kopano -g kopano /var/run/kopano export LC_ALL=$KOPANO_LOCALE export LANG=$KOPANO_LOCALE start-stop-daemon --start $QUIETDAEMON --pidfile $PIDFILE --exec /usr/bin/python $PRESENCE -- $PRESENCE_OPTS >/dev/null 2>&1 log_end_msg $? unset LC_ALL LANG ;; stop) log_begin_msg "Stopping $DESC: $NAME" start-stop-daemon --stop $QUIETDAEMON --pidfile $PIDFILE --retry TERM/15/KILL --exec /usr/bin/python $PRESENCE >/dev/null RETVAL=$? rm -f $PIDFILE test "$RETVAL" -eq 0 log_end_msg "$?" ;; restart) $0 stop $0 start ;; status) status_of_proc -p $PIDFILE "$PRESENCE" "$NAME" && exit 0 || exit $? ;; reload|force-reload) log_begin_msg "Reloading $DESC: $NAME" start-stop-daemon --stop $QUIETDAEMON --signal HUP --pidfile $PIDFILE --exec /usr/bin/python $PRESENCE log_end_msg $? ;; try-restart) "$0" status >/dev/null && "$0" restart ;; *) N=/etc/init.d/$NAME echo "Usage: $N {start|stop|restart|reload|force-reload|status}" >&2 exit 1 ;; esac exit 0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor