[opensuse] Trying to start inn (news server)
Hi, I'm trying to configure and start an inn news server under Leap 15.1, but it seems that the start scripts are faulty, they have not been migrated to systemd: news2:~ # systemctl status inn Unit inn.service could not be found. news2:~ # news2:~ # rcinn Usage: /usr/sbin/rcinn {start|stop|restart|reload|status} news2:~ # /etc/init.d/inn status News-Server INN: unused Unit inn.service could not be found. news2:~ # news2:~ # rcinn status News-Server INN: unused Unit inn.service could not be found. news2:~ # /usr/sbin/rcinn status News-Server INN: unused Unit inn.service could not be found. news2:~ # less /usr/sbin/rcinn news2:~ # rcinn stop redirecting to systemctl stop inn.service Failed to stop inn.service: Unit inn.service not loaded. news2:~ # #! /bin/sh # # Copyright (c) 1998 Florian La Roche # ### BEGIN INIT INFO # Provides: inn # Required-Start: $network $named # Required-Stop: $network $named # Default-Start: 3 5 # Default-Stop: 0 1 2 6 # Short-Description: Inter Net News Server (INN) # Description: Inter Net News Server (INN) ### END INIT INFO . /etc/rc.status run_as_news() { test -n "$UID" || UID="$(id -ru)" if test "x$UID" = x0 ; then su news -c "$*" else $* fi } NEWSCONF=/etc/news/inn.conf test -f $NEWSCONF || exit 5 PATHRUN=`sed -ne 's/^pathrun: *//p' < $NEWSCONF` PATHBIN=`sed -ne 's/^pathbin: *//p' < $NEWSCONF` WATCH=${PATHRUN}/innwatch.pid ACTIVED=${PATHRUN}/actived.pid PID=${PATHRUN}/innd.pid # The echo return value for success (defined in /etc/rc.config). rc_reset case "$1" in start) echo -n "Starting News-Server INN" run_as_news "$PATHBIN/rc.news" rc_status -v ;; stop) echo -n "Shutting down News-Server INN" run_as_news "$PATHBIN/rc.news stop" rc_status -v ;; restart) $0 stop $0 start rc_status ;; reload) echo -n "News-Server INN reload configuration files" run_as_news "$PATHBIN/ctlinnd" reload all "by rcinn reload" >/dev/null rc_status -v ;; status) test -f "$PID" && run_as_news "$PATHBIN/ctlinnd" mode echo -n "News-Server INN: " checkproc -p "$PID" "$PATHBIN/innd" rc_status -v ;; *) echo "Usage: $0 {start|stop|restart|reload|status}" exit 1 esac rc_exit -- Cheers / Saludos, Carlos E. R. (from 15.0 x86_64 at Telcontar)
On 17/06/2019 20.07, Carlos E. R. wrote:
Hi,
I'm trying to configure and start an inn news server under Leap 15.1, but it seems that the start scripts are faulty, they have not been migrated to systemd:
Bug 1138492 - Package inn misses inn.service, thus can not be started. https://bugzilla.opensuse.org/show_bug.cgi?id=1138492 -- Cheers / Saludos, Carlos E. R. (from 15.0 x86_64 at Telcontar)
Carlos E. R. wrote:
Hi,
I'm trying to configure and start an inn news server under Leap 15.1, but it seems that the start scripts are faulty, they have not been migrated to systemd:
That is really not a problem for the moment. The package has the init-script, that'll work.
news2:~ # systemctl status inn Unit inn.service could not be found. news2:~ #
Did you do a daemon-reload first ? -- Per Jessen, Zürich (23.4°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 19/06/2019 11.29, Per Jessen wrote:
Carlos E. R. wrote:
Hi,
I'm trying to configure and start an inn news server under Leap 15.1, but it seems that the start scripts are faulty, they have not been migrated to systemd:
That is really not a problem for the moment. The package has the init-script, that'll work.
No, it doesn't, that's the problem. The init script calls systemd.
news2:~ # systemctl status inn Unit inn.service could not be found. news2:~ #
Did you do a daemon-reload first ?
That I forgot, but I'll try. I assumed the rpm install would have done it. I did search the rpm and didn't see the service file, also tried locate... [...] Ok, it worked. :-o [ashamed] I forgot the obvious. I'll have to close the bugzilla. -- Cheers / Saludos, Carlos E. R. (from 15.0 x86_64 at Telcontar)
Carlos E. R. wrote:
Did you do a daemon-reload first ?
That I forgot, but I'll try. I assumed the rpm install would have done it. I did search the rpm and didn't see the service file, also tried locate...
[...]
Ok, it worked. :-o [ashamed] I forgot the obvious. I'll have to close the bugzilla.
well, the inn startup scripts still need converting to systemd, but it's probably not very urgent :-) -- Per Jessen, Zürich (25.3°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Wed, 19 Jun 2019 12:28:13 +0200
"Carlos E. R."
On 19/06/2019 11.29, Per Jessen wrote:
Carlos E. R. wrote:
Hi,
I'm trying to configure and start an inn news server under Leap 15.1, but it seems that the start scripts are faulty, they have not been migrated to systemd:
That is really not a problem for the moment. The package has the init-script, that'll work.
No, it doesn't, that's the problem. The init script calls systemd.
news2:~ # systemctl status inn Unit inn.service could not be found. news2:~ #
Did you do a daemon-reload first ?
That I forgot, but I'll try. I assumed the rpm install would have done it. I did search the rpm and didn't see the service file, also tried locate...
I don't think an RPM install does, to avoid multiple restarts if you're installing several RPMs. Maybe YaST or whatever manager you used, if any, should have done one at the end of a batch? The daemon-reload may have generated the unit.
[...]
Ok, it worked. :-o [ashamed]
I forgot the obvious. I'll have to close the bugzilla.
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (3)
-
Carlos E. R.
-
Dave Howorth
-
Per Jessen