Stable: 2.5.2
Development: 2.6-alpha3
here is debian startup script for lastfm-mocp (source)
Usage:
1. place script under /etc/init.d
2. give it the same permissions as other scripts; on my system:
-rwxr-xr-x 1 root root 922 2007-08-13 20:49 lastfm-mocp
3. edit USER and GROUP variables, which are currently set to 'rs' which is my username and group
4. change DAEMON variable to point to your lastfm-mocp executable
Now you should be able to call /etc/init.d/lastfm-mocp start/stop (as root)
To make service start at boot automatically run:
update-rc.d lastfm-mocp defaults
Script is very stupid and probably breaks every debian rule for writing such scripts.
daper
Tue, 2007-08-14 19:26
Permalink
Thanks. Maybe the same could
Thanks.
Maybe the same could be done making a script with commands (just a concept) `lastfm-mocp; mocp` and using it instead of mocp?
--
Damian Pietras - MOC developer
r080
Wed, 2007-08-15 07:44
Permalink
lastfm-mocp does not return
lastfm-mocp does not return after it's run, so you'd need to add an & and then things are not that simple