GIF89a;
Direktori : /etc/rc.d/init.d/ |
Current File : //etc/rc.d/init.d/sw-engine |
#!/bin/sh ### Copyright 1999-2022. Plesk International GmbH. All rights reserved. # # sw-engine Startup script for Plesk panel sw-engine ### BEGIN INIT INFO # Provides: sw-engine-fpm # Required-Start: $remote_fs $network # Required-Stop: $remote_fs $network # chkconfig: - 85 15 # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Start Plesk engine # description: Startup script for Plesk panel sw-engine ### END INIT INFO # . /etc/init.d/functions binary=/usr/sbin/sw-engine-fpm conffile=/etc/sw-engine/sw-engine-fpm.conf pidfile=/var/run/sw-engine.pid lockfile=/var/lock/subsys/sw-engine-fpm prog=sw-engine-fpm lm_lock_dir=/run/lock/lmlib/ opts="--fpm-config $conffile -c /usr/local/psa/admin/conf/php.ini" test -x "$binary" || exit 0 start () { echo -n $"Starting $prog: " chmod 1777 /dev/shm daemon --pidfile ${pidfile} ${binary} ${opts} RETVAL=$? echo [ $RETVAL -eq 0 ] && touch ${lockfile} } stop () { echo -n $"Stopping $prog: " killproc -p ${pidfile} ${binary} RETVAL=$? echo if [ $RETVAL -eq 0 ] ; then rm -f ${lockfile} ${pidfile} fi rm -rf ${lm_lock_dir}* } case "$1" in start) start ;; stop) stop ;; status) status -p ${pidfile} ${binary} ;; restart) stop start ;; reload|graceful) echo -n $"Reloading $prog: " killproc -p ${pidfile} ${binary} -USR2 echo ;; condrestart) [ -f $lockfile ] && stop && start || : ;; *) echo "Usage: $0 {start|stop|status|restart|reload|condrestart}" exit 1 ;; esac exit $?