Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
computer:netsentinel_license_server_under_wine [2010/05/03 04:48]
tdobes
computer:netsentinel_license_server_under_wine [2010/05/03 04:54] (current)
tdobes
Line 18: Line 18:
 su -c "/usr/bin/wineboot" -s /bin/sh netsentinel su -c "/usr/bin/wineboot" -s /bin/sh netsentinel
 su -c "/usr/lib/wine/wineserver -k" -s /bin/sh netsentinel</code> su -c "/usr/lib/wine/wineserver -k" -s /bin/sh netsentinel</code>
-  * the netsentinel user needs to own /dev/parport0+  * the netsentinel user needs to own /dev/parport0... to do this, I created a ''/etc/udev/rules.d/55-sentinel.rules'': 
 +<file>SUBSYSTEM=="ppdev", OWNER="netsentinel"</file>
   * the netsentinel user needs to own /opt/netsentinel/.wine -- but does not necessarily need write permissions.  I did this:  ''chown -R root:root /opt/netsentinel/.wine && chown netsentinel /opt/netsentinel/.wine && chmod 555 /opt/netsentinel/.wine''   * the netsentinel user needs to own /opt/netsentinel/.wine -- but does not necessarily need write permissions.  I did this:  ''chown -R root:root /opt/netsentinel/.wine && chown netsentinel /opt/netsentinel/.wine && chmod 555 /opt/netsentinel/.wine''
 +  * ''/etc/init.d/netsentinel'' looks like this:
 +<file>
 +#!/bin/sh
 +### BEGIN INIT INFO
 +# Provides:          netsentinel
 +# Required-Start:    $remote_fs $network
 +# Required-Stop:     $remote_fs $network
 +# Default-Start:     2 3 4 5
 +# Default-Stop:      0 1 6
 +# Short-Description: Start the NetSentinel server.
 +### END INIT INFO
 +
 +# Author: Tom Dobes <tomdobes@purdue.edu>
 +
 +PATH=/sbin:/usr/sbin:/bin:/usr/bin
 +DAEMON=/usr/lib/wine/wineserver
 +DAEMON2=/usr/bin/wineboot
 +DAEMON_OPTS="-p"
 +NAME=netsentinel
 +DESC="NetSentinel server"
 +SCRIPTNAME=/etc/init.d/$NAME
 +USER=netsentinel
 +
 +test -x $DAEMON || exit 0
 +
 +set -e
 +
 +. /lib/lsb/init-functions
 +
 +case "$1" in
 +    start)
 +        log_daemon_msg "Starting $DESC" $NAME
 +        if ! start-stop-daemon --start --quiet --oknodo \
 +            --chuid $USER --exec $DAEMON -- $DAEMON_OPTS 2> /dev/null
 +        then
 +            log_end_msg 1
 +        else
 +            if ! start-stop-daemon --start --quiet --oknodo \
 +                --chuid $USER --exec $DAEMON2 2> /dev/null
 +            then
 +                log_end_msg 1
 +            else
 +                log_end_msg 0
 +            fi
 +        fi
 +        ;;
 +    stop)
 +        log_daemon_msg "Stopping $DESC" $NAME
 +        if start-stop-daemon --quiet --stop --oknodo --retry 30 --oknodo \
 +            --user $USER --signal INT --exec $DAEMON
 +        then
 +            log_end_msg 0
 +        else
 +            log_end_msg 1
 +        fi
 +        ;;
 +    restart|force-reload)
 +        $0 stop
 +        sleep 5
 +        $0 start
 +        ;;
 +    *)
 +        echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
 +        exit 1
 +        ;;
 +esac
 +
 +exit 0
 +</file>
computer/netsentinel_license_server_under_wine.txt · Last modified: 2010/05/03 04:54 by tdobes
Recent changes RSS feed Driven by DokuWiki Valid XHTML 1.0 Valid CSS