Bug 269098 - 'service {name} stop' works even without {name}_enable=YES in /etc/rc.conf
Summary: 'service {name} stop' works even without {name}_enable=YES in /etc/rc.conf
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: 13.1-STABLE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-22 17:05 UTC by Yuri Victorovich
Modified: 2023-07-29 02:32 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yuri Victorovich freebsd_committer freebsd_triage 2023-01-22 17:05:21 UTC
Testcase: www/adguardhome.

The log below shows how 'service {name} start' doesn't work without {name}_enable=YES in /etc/rc.conf, but 'service {name} stop' does work without {name}_enable=YES.

[yuri@yv /usr/ports/www/adguardhome]$ sudo service adguardhome start
Cannot 'start' adguardhome. Set adguardhome_enable to YES in /etc/rc.conf or use 'onestart' instead of 'start'.
[yuri@yv /usr/ports/www/adguardhome]$ sudo service adguardhome onestart
Starting adguardhome.
[yuri@yv /usr/ports/www/adguardhome]$ ps ax | grep adg
88374  -  Ss       0:00.00 daemon: adguardhome[88375] (daemon)
88375  -  S        0:00.34 /usr/local/bin/adguardhome
88378 12  S+       0:00.00 grep adg
[yuri@yv /usr/ports/www/adguardhome]$ sudo service adguardhome stop
Stopping adguardhome.
Waiting for PIDS: 88375.
[yuri@yv /usr/ports/www/adguardhome]$ ps ax | grep adg
88389 12  S+       0:00.00 grep adg



$ uname -a
FreeBSD xx.xx.xx 13.1-STABLE FreeBSD 13.1-STABLE #0 stable/13-n253229-dd7b7807c32a: Mon Dec  5 05:36:40 PST 2022     unknown@nohost.com:/usr/obj/usr/freebsd-src/amd64.amd64/sys/GENERIC amd64