FAQ  •  Register  •  Login

Linux Daemon scripts

<<

Morcegolas

Serviio newbie

Posts: 2

Joined: Wed Jan 18, 2012 2:57 am

Post Wed Jan 18, 2012 11:54 am

Re: Linux Daemon scripts

Cereberus,

Hi, I already added as a StartUp Application, but if it's not root doesn't work...
:S
<<

Cerberus

User avatar

DLNA master

Posts: 4116

Joined: Sun Jan 02, 2011 5:20 pm

Location: Reading, UK

Post Wed Jan 18, 2012 12:24 pm

Re: Linux Daemon scripts

doessnt have to be root.
Phil Bennett
Beta Tester Group
Wiki | FAQ

Samsung LE40C750 LCD | Samsung BD-C5900 | Sony PS3 | Windows 7 |
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

Cantello

Serviio newbie

Posts: 6

Joined: Wed Oct 12, 2011 7:45 am

Post Sun Feb 05, 2012 5:43 pm

Re: Linux Daemon scripts

What exactly should I add in order to run kairoh's webUI together with serviio at system start on my Ununtu system? Currently I have the serviio daemon started via the scripts presented here but I have no clue on how to integrate the webUI. The wrapper is not supposed to be compatible with serviio as a service, which i what I'm using now so this probably won't work.

Any hints?

Thanks,
Helge.
<<

Cerberus

User avatar

DLNA master

Posts: 4116

Joined: Sun Jan 02, 2011 5:20 pm

Location: Reading, UK

Post Sun Feb 05, 2012 7:54 pm

Re: Linux Daemon scripts

Cantello wrote:What exactly should I add in order to run kairoh's webUI together with serviio at system start on my Ununtu system? Currently I have the serviio daemon started via the scripts presented here but I have no clue on how to integrate the webUI. The wrapper is not supposed to be compatible with serviio as a service, which i what I'm using now so this probably won't work.

Any hints?

Thanks,
Helge.


http://wiki.serviio.org/doku.php?id=how ... all:ubuntu
Phil Bennett
Beta Tester Group
Wiki | FAQ

Samsung LE40C750 LCD | Samsung BD-C5900 | Sony PS3 | Windows 7 |
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

Cantello

Serviio newbie

Posts: 6

Joined: Wed Oct 12, 2011 7:45 am

Post Mon Feb 06, 2012 9:25 am

Re: Linux Daemon scripts

Cerberus wrote:http://wiki.serviio.org/doku.php?id=howto:linux:install:ubuntu


Ok, this works. Thanks! I thought that as this is a service, I cannot use the wrapper and somehow have to use a separate command to start the webUI.

Helge.
<<

tibiscum

Serviio newbie

Posts: 1

Joined: Fri Apr 20, 2012 2:44 pm

Post Fri Apr 20, 2012 3:04 pm

Re: Linux Daemon scripts

Many thanks to you:

Petr Nejedly - Serviio Developer
AcidumIrae | Web UI for Serviio
Mark Pemberton | Web UI for Serviio
Qkxy | for SuSE Linux - demon configuration

Your work is great !

My config: SuSE Linux 11.3 / Apache 2 Web Server - Renderer: SamsungTV UE37D6500
All stuff works from from first try !

Thanks all of you !
<<

es2burn

Serviio newbie

Posts: 1

Joined: Mon Aug 13, 2012 1:16 am

Post Mon Aug 13, 2012 1:22 am

Re: Linux Daemon scripts

Adding a contribution of mine as I'm trying to setup autostart of serviio in Lubuntu 12.04 platform and found the solution after searching online:

sudo text edit "/etc/xdg/lxsession/Lubuntu/autostart" in terminal
and add the following:
@/path/to/serviio/bin/serviio.sh

Note the above /path/to/serviio/ is your actual path to where serviio is unpacked

courtesy to the ubuntu forum thread below:
http://ubuntuforums.org/showthread.php?t=1604211&page=2
<<

Fe14

Serviio newbie

Posts: 4

Joined: Wed Sep 05, 2012 3:36 pm

Post Wed Sep 05, 2012 4:36 pm

Re: Linux Daemon scripts

I want to remove completely Serviio from my Ubuntu, 'cause i wan't to reinstall it (Serviio doesn't work correctly).
How i can do this?
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 16209

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Wed Sep 05, 2012 9:16 pm

Re: Linux Daemon scripts

just remove the serviio folder
<<

escape.key

Serviio newbie

Posts: 1

Joined: Sun Nov 18, 2012 7:28 pm

Post Sun Nov 18, 2012 7:38 pm

Re: Linux Daemon scripts

After dealing around with a lot of up and downgrade between versions due to the issue that my Bravia doesn't like Serviio 1.0.1 anymore, I had to switch back and forth between versions.

I have looked to a init script which would fit my needs to be more dynamic on CentOS. Couldn't find one and it's maybe hidden in some section here. However, the pasted init script will work on RedHat based systems and does include the WebUI wrapper also. Feel free to grab it, modify and comment on it.

  Code:
#!/bin/bash
#
# serviio
#
# chkconfig: 235 99 10
#
# description: Serviio is a DNLA media server\
#    By Roger Beck - 2012
# processname: serviio.sh
#
### BEGIN INIT INFO
# Required-Start: $network
# Required-Stop: $network
# Default-Start: 2 3 5
# Default-Stop: 0 1 6
# Description: Start or stop the Serviio server
### END INIT INFO

version="0.6.2"
bin_path="/usr/local/serviio-$version/bin"
ui_bin="serviio-webui.sh"
start=$bin_path/serviio.sh
stop=$bin_path/stop
lockfile=/var/lock/subsys/serviio
name='Serviio'

start() {
        $start & >/dev/null 2>&1 </dev/null
        echo "Starting Serviio $version DNLA server"
        RETVAL=$?
        if [ "$RETVAL" = "0" ]; then
                touch $lockfile >/dev/null 2>&1
        fi

        if [ -e $bin_path/$ui_bin ] ; then
                echo "Starting Web-UI on port 8123"
                $bin_path/$ui_bin &
        fi
}

stop() {
        #$stop
        RETVAL=$?
        serv_kill=`ps aux | grep serviio.sh | grep -v grep | awk '{print $2}'`
        java_kill=`ps aux | grep java | grep -v grep | awk '{print $2}'`
        if [ "$serv_kill" = "" ]; then
                echo "Serviio is not running"
                RETVAL=1
        else
                kill $serv_kill
                RETVAL=0
        fi

        if [ "$java_kill" = "" ]; then
                echo "Java is not running"
                RETVAL=1
        else
                kill -9 $java_kill
                RETVAL=0
        fi

        # check is the WebUI wrapper is running
        ui_pid=`ps aux | grep $ui_bin | grep -v grep | awk '{print $2}'`
        if [ "$ui_pid" = "" ]; then
                echo "Serviio WebUI is not running"
        else
                kill $ui_pid
        fi
}

status() {
        serv_pid=`ps aux | grep serviio.sh | grep -v grep | awk '{print $2}'`
        java_pid=`ps aux | grep java | grep -v grep | awk '{print $2}'`
        if [ "$serv_pid" != "" ]; then
                echo "$name (pid $serv_pid) is running"
                RETVAL=0
        else
                echo "$name is stopped"
                RETVAL=1
        fi

        # check is the WebUI wrapper is running
        ui_pid=`ps aux | grep serviio-webui | grep -v grep | awk '{print $2}'`
        if [ "$ui_pid" = "" ]; then
                echo "Serviio WebUI is not running"
        else
                echo "WebUI (pid $ui_pid) is running"
        fi
}

restart() {
        stop
        start
        RETVAL=$?
}

case "$1" in
        start|stop|restart|status)
                $1
                ;;
        *)
                echo $"Usage: $0 {start|stop|status|restart}"
                exit 1
esac
exit $RETVAL
<<

soundcheck

Post Thu Dec 20, 2012 10:05 am

Re: Linux Daemon scripts

Hi.

I created a serviio.conf upstart script under /etc/init under Ubuntu 12.04/10.

This way you might get rid of all this old fashioned init.d stuff.

  Code:
#!upstart

description "Serviio Server Upstart script"

env USER=serviio

start on started networking
start on mounted DEVICE=[/UL]*
stop  on shutdown

respawn

exec start-stop-daemon --start --make-pidfile --pidfile /var/run/serviio.pid -c $USER --exec /usr/share/serviio/bin/serviio.sh





Note: You need to create a user "serviio" first!!!

This user will be a kind of system user without login shell, exclusively used for serviio.

E.g.:

  Code:
 sudo useradd  -u 999 -g nogroup -b /usr/share/serviio -s /bin/false serviio


You also need to change the installation folder/subfolder ownerships. Otherwise you'll get serious permission problems:

  Code:
sudo chown -R serviio /usr/share/serviio



serviio can now also be manually started/stopped with:

  Code:
sudo service serviio stop
sudo service serviio start



If you guys can live with above we could/should add it to the Wiki. The "serviio" user generation and startup part is IMO missing anyhow.


Cheers
Last edited by soundcheck on Thu Dec 20, 2012 10:49 am, edited 1 time in total.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 16209

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Thu Dec 20, 2012 10:49 am

Re: Linux Daemon scripts

soundcheck wrote:If you guys can live with above we could/should add it to the Wiki. The "serviio" user generation and startup part is IMO missing anyhow.

Please do.
<<

soohyun2222

Serviio newbie

Posts: 2

Joined: Wed Jan 02, 2013 3:43 am

Post Sun Jan 06, 2013 12:56 am

Re: Linux Daemon scripts

thanks for the escape key for posting CentOS script.
they work wonderful!
However, it is to keep in mind that this only starts servillo host.

Additionally, for noobs like me who wonder how to incorporate this script into your computer,
I found this site really useful:
http://articles.slicehost.com/2009/2/2/ ... nit-script
Just substitute nginx to serviio when you follow the steps.
<<

DeanoX

Streaming enthusiast

Posts: 23

Joined: Thu Jan 03, 2013 10:30 pm

Post Tue Jan 15, 2013 1:26 pm

Re: Linux Daemon scripts

Thanks to everyone who has contributed. I have used several bits from this thread for my startup script for Zyxel NAS.
Zyxel NSA325 running Serviio 1.1 | Sony Bravia 2011 KDL-24EX320 / KDL-40EX723
<<

Onizyka

Serviio newbie

Posts: 1

Joined: Mon Jun 24, 2013 7:54 pm

Post Mon Jun 24, 2013 7:57 pm

Re: Linux Daemon scripts

for Debian 6.0

nano /etc/init.d/serviio

  Code:
#! /bin/sh
 #
 # /etc/init.d/serviio
 #
 #
 ### BEGIN INIT INFO
 # Provides: serviio
 # Required-Start: $network
 # Required-Stop: $network
 # Default-Start: 3 5
 # Default-Stop: 0 1 2 6
 # Description: Start the serviio DLNA server in headless mode
 ### END INIT INFO

 SERVIIO_HOME="/etc/serviio"
 SERVIIO_DAEMON="serviio.sh"
 SERVIIO_BIN="$SERVIIO_HOME/bin/$SERVIIO_DAEMON"
 SERVIIO_USER="root"

 # Source function library.
 . /lib/lsb/init-functions

 RETVAL=0

 check() {
         # Check that we're a privileged user
         [ $(id -u) = 0 ] || exit 4

         # Check if SERVIIO_HOME exists
         test -d "$SERVIIO_HOME" || exit 5

         # Check if SERVIIO_BIN is executable
         test -x "$SERVIIO_BIN" || exit 5
 }

 start() {
         check

         echo -n "Starting Serviio DLNA server: "
         /usr/bin/sudo -u $SERVIIO_USER -H $SERVIIO_BIN -headless &

         RETVAL=$?
         if [ $RETVAL -eq 0 ]; then
             touch /var/lock/serviio
             log_end_msg 0
         else
             log_end_msg 1
         fi
         echo
         return $RETVAL
 }

 stop() {
         check

         echo -n "Shutting down Serviio DLNA daemon: "
         killproc "$SERVIIO_BIN"
         RETVAL=$?
         [ $RETVAL -eq 0 ] && rm -f /var/lock/serviio
         echo
         return $RETVAL
 }

 restart() {
         stop
         start
 }


 case "$1" in
 start)
         start
         ;;
 stop)
         stop
         ;;
 force-reload)
         restart
         ;;
 restart)
         restart
         ;;
 condrestart)
         if [ -f /var/lock/serviio ]; then
             restart
         fi
         ;;
 status)
         status serviio.sh
         ;;
 *)
         echo $"Usage: $0 {start|stop|status|restart|condrestart|force-reload}"
         RETVAL=2
 esac

 exit $RETVAL


chmod a+rx /etc/init.d/serviio
<<

thenamelessthing

User avatar

DLNA master

Posts: 126

Joined: Tue Dec 04, 2012 4:45 am

Location: Canada

Post Thu Mar 13, 2014 5:08 pm

Re: Linux Daemon scripts

Hi, very nice info! and it's working for me under ubuntu 12.04.


It is possible to add to this upstart script status info? I'm not familiar with this part and I don't know how to do that. A little helping hand for this would be really appreciated...
My Setup : BDT220 Panasonic Bluray player, TC-L55ET5 and TC-L42ET5 Panasonic TV. My home media server run Serviio 1.4.2 Pro under GNU/Linux Ubuntu 14.04 LTS server x64 and the hardware is Amd 1045t Phenom II X6, 6Gb DDR3 1333 mhz on SSD and data on soft raid 5 (3x1tb).
<<

akasaka

Serviio newbie

Posts: 1

Joined: Thu Aug 28, 2014 10:44 am

Post Thu Aug 28, 2014 11:40 am

Re: Linux Daemon scripts

Hey Guys,
Updated this for Ubuntu 14.04 but should work on other Debian based systems.

/etc/int.d/serviio
  Code:
#!/bin/bash
#
#########################################################
#- Daemon Script Configuration for Serviio Media Server
#- By Ian Laird; converted for Debian by Jacob Lundberg
#- Updated and Merged for Ubuntu 14.04 by Matthew Bate
#########################################################
#
#########################################################
#
### BEGIN INIT INFO
# Provides:          serviio
# Required-Start:    $local_fs $remote_fs $network $syslog
# Required-Stop:     $local_fs $remote_fs $network $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# X-Interactive:     true
# Short-Description: Start/stop serviio media server
# Description:       The Serviio media server makes your media available to
#                    all kinds of networked devices.
### END INIT INFO

. /lib/lsb/init-functions

if [ -f /etc/default/rcS ]; then
        . /etc/default/rcS
fi

NAME="Serviio Media Server"
DAEMON="/opt/Serviio/bin/serviio.sh"      ## Update this to point at serviio_root/bin/serviio.sh
DAEMON_STOP=" -stop"
SERVICE_ACCOUNT="root"            ## DON'T RUN UNDER ROOT!
TIMEOUT=3

# We have this because start-stop-daemon needs one and wont start without it.  Although it provides wrong PID ID of Java Client.
PIDFILE="/var/run/serviiod.pid"         

if [ -f /etc/default/serviio ]; then
        . /etc/default/serviio
fi

[ -x "$DAEMON" ] || exit 0

#########################################################
#
#  Status function check not only the PID file but if it has gone missing it will look for the Java Client manually.
#
#########################################################

status() {

    if [ $1 = "PID" ]; then
   if [ ! -f $TPIDFILE ]; then
       PID=$(ps -ef | grep "org.serviio.MediaServer" | grep -v grep | awk "{ print \$2 }")
       echo $PID
   else
       PID=$(cat $TPIDFILE)
          echo $PID
   fi
    else
        PID=$(ps -ef | grep "org.serviio.MediaServer" | grep -v grep | awk "{ print \$2 }")
        if [[ -z $PID ]]; then
            if [ $1 = "status" ]; then log_daemon_msg "Serviio is currently offline."; else echo "0"; fi # Offline
        else
          if [ $1 = "status" ]; then log_daemon_msg "Serviio is currently online."; else echo "1"; fi # Online
        fi   
    fi
}

start() {
    RUNNING=$(status "0")
    if [ $RUNNING = "0" ]; then
   log_daemon_msg "Starting Serviio Media Server..."
   start-stop-daemon --start -q -b -p "$PIDFILE" -m -c "${SERVICE_ACCOUNT}" -x "${DAEMON}"
   log_end_msg $?
    else
   log_daemon_msg "Serviio Media Server is already running."
   log_end_msg 1
    fi
}

stop() {
    RUNNING=$(status "0")
    if [ ${#RUNNING} = "1" ]; then
   log_daemon_msg "Shutting Down Serviio Media Server..."
   ${DAEMON} ${DAEMON_STOP}
   log_end_msg $?
    else
   log_daemon_msg "Serviio Media Server is already shutdown."
   log_end_msg 1
    fi
}

force_stop() {
    RUNNING=$(status "0")
    if [ ${#RUNNING} = "1" ]; then
   log_daemon_msg "Shutting Down Serviio Media Server..."
   RUNNING=$(status "PID")
   kill -TERM $RUNNING
   log_end_msg $?
    else
   log_daemon_msg "Serviio Media Server is already shutdown."
   log_end_msg 1
    fi
}

case "${1:-}" in
        start)
                start
        ;;
        stop)
                stop
        ;;
        restart)
                stop
                start
        ;;
        status)
                status $1
        ;;
   force-stop)
      force_stop
   ;;
        *)
                log_success_msg "Usage: /etc/init.d/$NAME {start|stop|force-stop|restart|status}"
                exit 1
        ;;
esac

exit 0

I've included credits based on where this originally started from but I'm pretty sure I've destroyed the code from the original authors anyways (First Page of Thread).
<<

ehrepli

Serviio newbie

Posts: 14

Joined: Fri Mar 30, 2012 10:21 pm

Location: France

Post Sun Dec 28, 2014 7:26 pm

Re: Linux Daemon scripts

Hi guys

I'm running Serviio on a headless Ubuntu server. All my files are located on a NAS, which is NFS mounted on the server and then served onto my devices.

My main issue so far is with the library updates. Whenever there is a power issue in my area, both my server and NAS go down when the UPS is out of juice.
When power is back up, NAS and server boot, but usually the NAS is slower, and by the time the server tries to mount the disk via NFS, it fails, since the NAS is still booting.
Then Serviio starts, does not detect any file and clears the database. When I manually remount the NAS disk, Serviio starts reindexing everything, which usually takes a few hours.

I've done an upstart script for Serviio that checks if the mounted folder is available and if not, does not start Serviio.
I've also created a simple script that runs every minute and if the folder is unavailable, stops the Serviio service, so that the database does not update.

I realize this solution is tailored for my specific needs, and that in the event of an issue as described above, it requires human intervention, but that works for me. All i try to do is stop the database refresh when the files are not there. I could stop the automatic refresh from the serviio console, but the family add new files everyday and I don't want to manually refresh every time.

I've used the upstart script provided by soundcheck in this same post (posting.php?mode=reply&f=17&t=71#pr58712), and modified it to my needs. I post it here in case it can be of use to someone.

create a file /etc/init/serviio.conf
  Code:
#!upstart

# script will run only after network is up and my /media/nas mounted
start on (started networking and mounted MOUNTPOINT=/media/nas)

#optional stuff
description "Serviio Server Upstart Script"

# configuration variables

#user that will run the Serviio service
env USER=ale

#the folder that contains all my movies
env FOLDER=/media/nas/videos

#a file in the folder above
env FPID=.serviio.pid

#path to the serviio start script
env BIN=/path/to/your_serviio/bin/serviio.sh


# pre-start stanza
pre-start script
  # main process will not be run if /some/file does not exist
 # if the file defined above does not exist (folder not mounted) it will exit
  test -f $FOLDER/$FPID || { stop ; exit 0; }
end script


# normal script
script

   # Set up correct LANG // you might not need this
   if [ -r /etc/default/locale ]; then
       . /etc/default/locale
       export LANG LANGUAGE LC_MESSAGES LC_ALL LC_CTYPE
   fi
   
   #start the service
   exec start-stop-daemon --start --make-pidfile --pidfile /var/run/serviio.pid -c $USER --exec $BIN

end script


In my case, i'm running serviio with my own user which i'm sure is the wrong thing to do. You can create a dedicated user following soundcheck's post (posting.php?mode=reply&f=17&t=71#pr58712)

Now you run
  Code:
sudo initctl reload-configuration


If I reboot, my script will run after network is up and my folder is mounted.

Now i want to add another checkpoint in case my NAS goes down for any reason.
To do this I created a simple bash script and scheduled it with cron.

Create a file called test_serviio.sh
  Code:
#!/bin/bash
# this is the file to check
FPID=/media/nas/videos/.serviio.pid
if [ ! -f $FPID ]
then
    echo "File not found: "$FPID
    service serviio stop
    echo "The system tried to stop Serviio service to keep the database unrefreshed at "$(date)" because "$FPID" was not available. You will need to restart the service manually, but first make sure that "$FPID" is available again." | mail -s "Serviio service stopped" you@yourmail.com
fi


I have scheduled it in the root crontab to run every minute. It's very rudimentary but gets the work done.
One small issue is that if the NAS goes down, it will send me a mail every minute for as long as the disk is not remounted. But well...

As you can see from the above, i'm a linux newbie, can't program at all, but hey, seems to work. Hoping that this could help some people.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 16209

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sun Dec 28, 2014 7:56 pm

Re: Linux Daemon scripts

Cool. 1.5 will come with a new way to handle remote drives and the library will not be wiped out anymore if the drive is not available on startup.
<<

Sheriff Hobbes

User avatar

Streaming enthusiast

Posts: 22

Joined: Wed Jan 22, 2014 6:32 pm

Post Fri Mar 06, 2015 10:49 pm

Re: Linux Daemon scripts

I want to share my service script /etc/init.d/serviio for my Serviio 1.5.1 installation on CentOS 7.0 .
It's the one from the Wiki for CentOS 6.3 with little modifications to the "stop" function.

  Code:
#! /bin/sh
#
# chkconfig 35 85 15
# description: Start the serviio DLNA server in headless mode
### BEGIN INIT INFO
# Provides: serviio
# Required-Start: $network
# Required-Stop: $network
# Default-Start: 3 5
# Default-Stop: 0 1 2 6
# Description: Start the serviio DLNA server in headless mode
### END INIT INFO

SERVIIO_HOME="/opt/serviio"
SERVIIO_DAEMON="serviio.sh"
SERVIIO_BIN="$SERVIIO_HOME/bin/$SERVIIO_DAEMON"
SERVIIO_USER="serviio"

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

check() {
        # Check that we're a privileged user
        [ $(id -u) = 0 ] || exit 4

        # Check if SERVIIO_HOME exists
        test -d "$SERVIIO_HOME" || exit 5

        # Check if SERVIIO_BIN is executable
        test -x "$SERVIIO_BIN" || exit 5
}

start() {
        check
        echo -n "Starting Serviio DLNA server: "
   /bin/su --session-command="$SERVIIO_BIN -headless" $SERVIIO_USER &
        RETVAL=$?
        if [ $RETVAL -eq 0 ]; then
            touch /var/lock/subsys/serviio.sh
            echo_success
        else
            echo_failure
        fi
        echo
        return $RETVAL
}

stop() {
    check
    echo -n "Shutting down Serviio DLNA daemon: "
    # Retrieve JAVA Serviio process ID
    PIDDAEMON=`pgrep -f "/bin/su --session-command=$SERVIIO_BIN -headless"`
    [ -z "$PIDDAEMON" ] || PIDJAVA=`ps -o pid= --ppid $PIDDAEMON`
    # Kill the daemon
    kill "$PIDDAEMON"
    RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/serviio.sh
    echo
    # Kill the JAVA Serviio process if exists
    [ -z "$PIDJAVA" ] || kill -9 $PIDJAVA
    return $RETVAL
}

restart() {
        stop
        start
}


case "$1" in
start)
        start
        ;;
stop)
        stop
        ;;
force-reload)
        restart
        ;;
restart)
        restart
        ;;
condrestart)
        if [ -f /var/lock/subsys/serviio.sh ]; then
            restart
        fi
        ;;
status)
        status serviio.sh
        ;;
*)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|force-reload}"
        RETVAL=2
esac

exit $RETVAL


Thanks,
SH
Marriage is a three ring circus:
-engagement ring
-wedding ring
-suffering

H. L. Mencken
PreviousNext

Return to Third-party tools integration

Who is online

Users browsing this forum: No registered users and 2 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.