Date: Thu, 27 May 2021 11:22:56 +0200 From: Stefan Bethke <stb@lassitu.de> To: Ingeborg Hellemo <ingeborg.hellemo@uit.no> Cc: freebsd-stable@freebsd.org Subject: Re: Service started via service(8) fails Message-ID: <6D2F0952-05E5-4B1F-B29C-77AA3CF0B785@lassitu.de> In-Reply-To: <202105270818.14R8Ig20087984@nordnytt.cc.uit.no>
index | next in thread | previous in thread | raw e-mail
Am 27.05.2021 um 10:18 schrieb Ingeborg Hellemo <ingeborg.hellemo@uit.no>: > > FreeBSD 11.4-RELEASE-p3 > > What, if any, difference is there between using 'service <something> restart' > and /usr/local/etc/rc.d/<something> restart'? > > I have this mindboggling situation where using 'service tac_plus restart' > leads to a service that is running but not working properly, whereas > '/usr/local/etc/rc.d/tac_plus restart' gives me a working service. Mostly the environment, plus file descriptors. Also, in some weird cases, the shell you're running the script from will make a difference. For example, PATH will likely be different between the environment that service(8) creates vs. the one you're running the script from directly. Stefan -- Stefan Bethke <stb@lassitu.de> Fon +49 151 14070811home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6D2F0952-05E5-4B1F-B29C-77AA3CF0B785>
