![]()
UXTR as a Windows Service (c:/> services.msc)
$ UXTR_PLIST="~/Library/LaunchAgents/com.aleph-archives.uxtr.plist"
$ cp uxtr.plist $UXTR_PLIST
Then, load the agent:
$ launchctl load $UXTR_PLIST
$ launchctl list | grep uxtr
85109 - com.aleph-archives.uxtr
$ launchctl unload $UXTR_PLIST
$ launchctl load $UXTR_PLIST
Then:
$ launchctl stop com.aleph-archives.uxtr
$ launchctl start com.aleph-archives.uxtr
$ sudo apt-get install screen python-pip
or:
$ sudo yum install screen python-pip
Then:
$ sudo pip install supervisor
$ sudo pip install superlance
#!/bin/sh -e
#
# rc.local
#
# ...
## Xvfb
su -c "/usr/bin/screen -dmS xvfb Xvfb :99 -screen 0 1024x768x24 -ac -noreset"
## UXTR
USER="batman"
su - $USER -c "/usr/bin/screen -dmS uxtr env DISPLAY=:99 /home/$USER/.uxtr/Supervisor"
exit 0
$ MEMMON=`type -p memmon`
$ sed -i "s|%MEMMON%|$MEMMON|" $HOME/.uxtr/etc/supervisord.conf
$ supervisorctl status uxtr
uxtr RUNNING pid 10538, uptime 15:01:57
$ tree -a $HOME/.uxtr/var
5 0 * * * /path/to/supervisorctl restart uxtr