Changes

Jump to: navigation, search

Ubuntu

840 bytes added, 16:45, 31 October 2013
no edit summary
[[Home | <<< back to Wiki Home]]
 
=Upstart to launch/respawn installation=
*create this in /etc/init/facegraft.conf
*<pre>
# face graft - face graft job file
description “face grafting installation”
author “Robert Twomey <mail@roberttwomey.com”
# Stanzas
#
# Stanzas control when and how a process is started and stopped
# See a list of stanzas here: http://upstart.ubuntu.com/wiki/Stanzas#respawn
# When to start the service
start on runlevel [2345]
# When to stop the service
stop on runlevel [016]
# Automatically restart process if crashed
respawn
# Essentially lets upstart know the process will detach itself to the background
expect fork
# Run before process
pre-start script
[ -d /var/run/facegraft ] || mkdir -p /var/run/facegraft
echo "Put bash code here"
end script
# Start the process
exec /home/rtwomey/launch_grafter.sh
</pre>
=UVC / webcam control in ubuntu=

Navigation menu