[Bug 207811] service -e doesn't show all enabled services

2021-02-04 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207811

Alan Somers  changed:

   What|Removed |Added

 CC||asom...@freebsd.org
   Assignee|b...@freebsd.org|asom...@freebsd.org

--- Comment #7 from Alan Somers  ---
Note that this is also a problem for services that are unconditionally enabled,
like sysctl.  And the patch looks promising.  I'll try it out when I have time.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 207811] service -e doesn't show all enabled services

2018-08-08 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207811

Kyle Evans  changed:

   What|Removed |Added

 CC||jil...@freebsd.org,
   ||kev...@freebsd.org

--- Comment #6 from Kyle Evans  ---
CC jilles@, one of our resident gurus.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 207811] service -e doesn't show all enabled services

2017-10-09 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207811

Alex Kozlov  changed:

   What|Removed |Added

 CC||a...@freebsd.org
   See Also||https://bugs.freebsd.org/bu
   ||gzilla/show_bug.cgi?id=2161
   ||15

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 207811] service -e doesn't show all enabled services

2017-10-09 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207811

Mark Linimon  changed:

   What|Removed |Added

   Keywords||patch

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 207811] service -e doesn't show all enabled services

2017-09-19 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207811

--- Comment #5 from Marius Halden  ---
(In reply to Marius Halden from comment #4)

Argh, seems like I messed up when I tested this first. It har the same
behaviour as earlier.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 207811] service -e doesn't show all enabled services

2017-09-19 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207811

Marius Halden  changed:

   What|Removed |Added

 Attachment #186509|0   |1
is obsolete||

--- Comment #4 from Marius Halden  ---
Created attachment 186540
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=186540=edit
service.patch

I realised the original patch had an issue with rcvar being empty. Here is an
updated patch which works around this by defining a default dummy rcvar incase
it's not set in the rc script. Although hacky, it does seem to work.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 207811] service -e doesn't show all enabled services

2017-09-18 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207811

Marius Halden  changed:

   What|Removed |Added

 CC||mariu...@lden.org

--- Comment #3 from Marius Halden  ---
Created attachment 186509
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=186509=edit
service.patch

Hi,

We ran into the same issue with tomcat 8 and 8.5. The attached patch fixes the
issue in service itself by querying the service with `run_rc_script … enabled`
to figure out if it's enabled or not.

I think the way name is defined in tomcat 8 should not be considered an error
as it's from what I understand done to make it easier to have multiple
instances of tomcat running. Which is done by linking/copying the original rc
script and defining the new variables in rc.conf using the name of the new file
instead of the old.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

[Bug 207811] service -e doesn't show all enabled services

2016-10-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207811

Miroslav Lachman <000.f...@quip.cz> changed:

   What|Removed |Added

   See Also||https://bugs.freebsd.org/bu
   ||gzilla/show_bug.cgi?id=2134
   ||63

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 207811] service -e doesn't show all enabled services

2016-06-30 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207811

Jason Unovitch  changed:

   What|Removed |Added

 CC||junovi...@freebsd.org,
   ||z...@freebsd.org

--- Comment #2 from Jason Unovitch  ---
Add isc-dhcp maintainer to CC.

This is because the isc-dhcp script uses parameter expansion to strip the isc-
off of $name.  See below from a 'sh -x /usr/sbin/service -e'.  Note that 'eval
name' fails because $name is still defined as whatever service was before it.

...
+ echo $'foreman_proxy_enable=\'YES\''
+ eval $'foreman_proxy_enable=\'YES\''
+ foreman_proxy_enable=YES
+ checkyesno foreman_proxy_enable
+ echo /usr/local/etc/rc.d/isc-dhcpd
/usr/local/etc/rc.d/isc-dhcpd
+ grep -q ^rcvar /usr/local/etc/rc.d/isc-dhcpd6
+ grep '^name=' /usr/local/etc/rc.d/isc-dhcpd6
+ eval 'name=${name##*/isc-}'
+ name=foreman_proxy
...

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 207811] service -e doesn't show all enabled services

2016-06-28 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207811

Miroslav Lachman <000.f...@quip.cz> changed:

   What|Removed |Added

Version|10.2-RELEASE|10.3-RELEASE

--- Comment #1 from Miroslav Lachman <000.f...@quip.cz> ---
I did upgrade from FreeBSD 10.2 to 10.3 and upgraded ISC DHCP from 4.1 to 4.3
but problem remains: 

service -e doesn't show isc-dhcpd
service -l shows isc-dhcpd

Can somebody look on to this annoying bug?

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 207811] service -e doesn't show all enabled services

2016-03-08 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207811

Bug ID: 207811
   Summary: service -e doesn't show all enabled services
   Product: Base System
   Version: 10.2-RELEASE
  Hardware: amd64
OS: Any
Status: New
  Severity: Affects Some People
  Priority: ---
 Component: misc
  Assignee: freebsd-bugs@FreeBSD.org
  Reporter: 000.f...@quip.cz
CC: freebsd-am...@freebsd.org
CC: freebsd-am...@freebsd.org

I have seen this few times before on another machines. This time I came to file
a PR for it.
I have isc-dhcp41-server-4.1.e_10,2 installed and enabled in rc.conf but
service -e doesn't show it:

root@xyza ~/# service -e | grep local
/usr/local/etc/rc.d/proftpd
/usr/local/etc/rc.d/smartd
/usr/local/etc/rc.d/rsyncd
/usr/local/etc/rc.d/amavis-p0fanalyzer
/usr/local/etc/rc.d/mysql-server
/usr/local/etc/rc.d/amavisd
/usr/local/etc/rc.d/courier-authdaemond
/usr/local/etc/rc.d/postfix
/usr/local/etc/rc.d/courier-imap-pop3d-ssl
/usr/local/etc/rc.d/courier-imap-pop3d
/usr/local/etc/rc.d/courier-imap-imapd-ssl
/usr/local/etc/rc.d/courier-imap-imapd
/usr/local/etc/rc.d/bsdstats
/usr/local/etc/rc.d/apache24


The rc file is there

root@xyza ~/# /usr/local/etc/rc.d/isc-dhcpd
Usage: /usr/local/etc/rc.d/isc-dhcpd
[fast|force|one|quiet](start|stop|restart|rcvar|enabled|uninstall|configtest|status|poll)


It can be started, I can request status etc.
root@xyza ~/# service isc-dhcpd start
Starting dhcpd.

root@xyza ~/# service isc-dhcpd status
dhcpd is running as pid 74802.


rc.conf contains these lines

## ISC-DHCPd
dhcpd_enable="YES"
dhcpd_flags="-q"
dhcpd_ifaces="nfe0"
dhcpd_chroot_enable="YES"


All listed services on this machine

root@xyza ~/# service -e
/etc/rc.d/hostid
/etc/rc.d/hostid_save
/etc/rc.d/cleanvar
/etc/rc.d/ip6addrctl
/etc/rc.d/devd
/etc/rc.d/pf
/etc/rc.d/newsyslog
/etc/rc.d/syslogd
/etc/rc.d/ntpdate
/etc/rc.d/nfsclient
/etc/rc.d/dmesg
/etc/rc.d/virecover
/etc/rc.d/motd
/etc/rc.d/ntpd
/usr/local/etc/rc.d/proftpd
/etc/rc.d/sshd
/usr/local/etc/rc.d/smartd
/usr/local/etc/rc.d/rsyncd
/usr/local/etc/rc.d/amavis-p0fanalyzer
/usr/local/etc/rc.d/mysql-server
/usr/local/etc/rc.d/amavisd
/usr/local/etc/rc.d/courier-authdaemond
/usr/local/etc/rc.d/postfix
/etc/rc.d/bsnmpd
/usr/local/etc/rc.d/courier-imap-pop3d-ssl
/usr/local/etc/rc.d/courier-imap-pop3d
/usr/local/etc/rc.d/courier-imap-imapd-ssl
/usr/local/etc/rc.d/courier-imap-imapd
/usr/local/etc/rc.d/bsdstats
/usr/local/etc/rc.d/apache24
/etc/rc.d/cron
/etc/rc.d/jail
/etc/rc.d/mixer
/etc/rc.d/gptboot
/etc/rc.d/bgfsck


root@xyza ~/# uname -srmi
FreeBSD 10.2-RELEASE-p10 amd64 GENERIC


I don't know why some services (isc-dhcpd in this case) are not shown.

How can I track it down?

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"