plexpy/init-scripts/init.upstart
Tim 0a170c20e6 Add back init scripts
Update cherrypy to 3.8.0
Remove unnecessary includes
Remove old references to Headphones
2015-06-30 21:27:07 +02:00

19 lines
574 B
Plaintext
Executable File

# plexpy - Automatic music downloader
#
# This is a session/user job. Install this file into /usr/share/upstart/sessions
# if plexpy is installed system wide, and into $XDG_CONFIG_HOME/upstart if
# plexpy is installed per user. Change the executable path appropiately.
start on desktop-start
stop on desktop-end
env CONFIG=""$XDG_CONFIG_HOME"/plexpy"
env DATA=""$XDG_DATA_HOME"/plexpy"
pre-start script
[ -d "$CONFIG" ] || mkdir -p "$CONFIG"
[ -d "$DATA" ] || mkdir -p "$DATA"
end script
exec PlexPy.py --nolaunch --config "$CONFIG"/config.ini --datadir "$DATA"