Skrypty startowe mldonkey
Łukasz Maśko
ed at yen.ipipan.waw.pl
Fri Dec 11 12:12:52 CET 2015
Dnia czwartek, 10 grudnia 2015 13:00:31 Łukasz Maśko pisze:
> Dnia czwartek, 10 grudnia 2015 13:24:08 Elan Ruusamäe pisze:
> > On 10.12.2015 08:18, Tomasz Pala wrote:
> > > >Poprawiłem na:
> > > >daemon --fork --user $USER --chdir ~$USER "exec $MLDONKEY_PATH >
> > > >${LOG:-/dev/null} 2>&1"
> >
> > committed a fix that should solve it
> >
> > please test as i'm not allowed to run this kind of software.
> > it will take time until i get to network where i can run it.
>
> Thanks. I'll check it as soon as I have it built.
If this was the patch you've applied:
diff -u lib/functions /lib/rc-scripts/functions
--- lib/functions 2015-12-10 13:55:28.721673231 +0100
+++ /lib/rc-scripts/functions 2015-12-10 21:43:31.000000000 +0100
@@ -690,13 +690,12 @@
--exec "$prog" \
-- "$@"
else
-
- if [ "$makepid" ] && [ "$pidfile" ]; then
- export PIDFILE="$pidfile"
- set -- /lib/rc-scripts/makepid "$@"
- fi
-
if [ "$fork" = "1" ]; then
+ export PIDFILE="/dev/null"
+ if [ "$makepid" ] && [ "$pidfile" ]; then
+ export PIDFILE="$pidfile"
+ fi
+ set -- /lib/rc-scripts/makepid "$@"
set -- /usr/bin/setsid "$@"
fi
if [ -n "$user" -a "$user" != "root" ]; then
then - unfortunately - it does not work. The starting script does not stop
here now, but mldonkey (in my case) is not stared any way :-(
--
Łukasz Maśko _o)
Lukasz.Masko(at)ipipan.waw.pl /\\
Registered Linux User #61028 _\_V
Ubuntu: staroafrykańskie słowo oznaczające "Nie umiem zainstalować Debiana"
More information about the pld-devel-en
mailing list