Package: willie
Version: 5.2.0-1
Severity: important
Hi,
I just tried running willie, but it seems that the "restart" and "stop"
actions of the init script are broken. These run willie --quit, without
passing $DAEMON_ARGS, which cause the following to happen:
matthijs@login:~$ sudo invoke-rc.d willie restart
Restarting willie: willieWelcome to Willie!
I can't seem to find the configuration file, so let's generate it!
Please answer the following questions to create your configuration file:
Enter the nickname for your bot [Willie]:
Checking the process tree confirms that it is stuck while running
--quit:
matthijs@login:~$ ps aux --forest|grep willie
root 13081 0.0 0.1 52352 4264 pts/20 S+ 10:50 0:00 |
\_ sudo invoke-rc.d willie restart
root 13082 0.0 0.0 4308 1548 pts/20 S+ 10:50 0:00 |
\_ /bin/sh /usr/sbin/invoke-rc.d willie restart
root 13099 0.0 0.0 4308 1584 pts/20 S+ 10:50 0:00 |
\_ /bin/sh /etc/init.d/willie restart
root 13104 0.0 0.0 39512 2860 pts/20 S+ 10:50 0:00 |
\_ su -s /bin/sh willie -c willie --quit
willie 13105 0.0 0.0 4308 692 ? Ss 10:50 0:00 |
\_ sh -c willie --quit
willie 13106 0.1 0.4 59472 17564 ? S 10:50 0:00 |
\_ /usr/bin/python3 /usr/bin/willie --quit
What seems to happen is that since $DAEMON_ARGS isn't passed, willie
looks in ~/.willie for a config, which doesn't exist, so it prompts to
create a new one. More generally, willie needs to know the config file
when running --quit, since the pidfile location can be modified in the
config.
It seems the simplest fix is to just pass $DAEMON_ARGS to willie --quit?
Gr.
Matthijs
-- System Information:
Debian Release: 7.7
APT prefers stable
APT policy: (990, 'stable'), (800, 'testing'), (700, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.16-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages willie depends on:
ii adduser 3.113+nmu3
ii init-system-helpers 1.18~bpo70+1
ii python3 3.4.2-2
ii python3-enchant 1.6.5-2
ii python3-feedparser 5.1.3-3
ii python3-lxml 3.4.0-1
ii python3-tz 2012c-1
pn python3:any <none>
willie recommends no packages.
willie suggests no packages.
-- debconf-show failed
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]