Date: Sun, 07 Jan 2018 19:30:18 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 224977] irc/ircd-hybrid rc script prints error when stopping service Message-ID: <bug-224977-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D224977 Bug ID: 224977 Summary: irc/ircd-hybrid rc script prints error when stopping service Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: db@FreeBSD.org Reporter: robertames@hotmail.com Assignee: db@FreeBSD.org Flags: maintainer-feedback?(db@FreeBSD.org) When shutting down ircd-hybrid, a confusing error is displayed stating the pid file does not exist: # /usr/local/etc/rc.d/ircd-hybrid stop Stopping ircd_hybrid. Waiting for PIDS: 14504. rm: /var/run/ircd/ircd.pid: No such file or directory This is because after ircd correctly cleans up it's pid file, the rc script tries to delete the non existing file. In the rc script, stop_postcmd is not needed. Patch: --- irc/ircd-hybrid/files/ircd-hybrid.in.orig 2017-09-28 19:21:57.0000000= 00 -0500 +++ irc/ircd-hybrid/files/ircd-hybrid.in 2018-01-06 09:16:04.3543860= 00 -0600 @@ -19,7 +19,6 @@ command=3D/usr/local/bin/ircd start_precmd=3Dpid_touch -stop_postcmd=3Dpid_rm load_rc_config ${name} @@ -36,9 +35,4 @@ chown $ircd_hybrid_user $pidfile } -pid_rm () -{ - rm $pidfile -} - run_rc_command "$1" If stop_postcmd is needed for some reason I don't understand, then the "rm" command should be "rm -f" so no error is displayed. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-224977-13>