Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #257528

Re: Starting stunnel with systemd.

From Greg Wooledge <greg@wooledge.org>
Newsgroups linux.debian.user
Subject Re: Starting stunnel with systemd.
Date 2023-04-24 13:50 +0200
Message-ID <Go2RH-4bbj-13@gated-at.bofh.it> (permalink)
References <GnLe9-40cX-3@gated-at.bofh.it> <GnYuK-48Ak-9@gated-at.bofh.it> <GnZ7r-48Ol-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, Apr 24, 2023 at 09:29:46AM +0200, tomas@tuxteam.de wrote:
> On Mon, Apr 24, 2023 at 08:45:16AM +0200, john doe wrote:
> > On 4/23/23 18:41, peter@easthope.ca wrote:
> > > $ cat /etc/systemd/system/stunnel.service
> > > [Unit]
> > > Description=StunnelStarter
> > > Documentation=man:stunnel(8)
> > > After=network.target auditd.service
> > > 
> > > [Service]
> > > ExecStart=/usr/bin/stunnel /etc/stunnel/stunnel.conf foreground=yes
> > 
> > I'm not sure about the forground option if you want a daemon in the
> > background! :)
> 
> Under systemd, foreground is the new background!
> 
> (No, seriously: AFAIU that's how it's supposed to be done with
> systemd, because that's how it does its process monitoring and
> log munging. Do take this with some fists of salt, as my systemd
> knowledge is purely theoretical. Ask an expert)

You're correct.  Whenever possible, the goal is to ExecStart a single
foreground process which is your service.  If you can do that, then
you have a "simple" service type.  If you cannot, then you probably have
a "forking" service type, and systemd has to track a whole bunch of
processes instead of just one.

Back to linux.debian.user | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Starting stunnel with systemd. peter@easthope.ca - 2023-04-23 19:00 +0200
  Re: Starting stunnel with systemd. Darac Marjal <mailinglist@darac.org.uk> - 2023-04-23 20:30 +0200
    Re: Starting stunnel with systemd. Virgo Pärna <virgo.parna@mail.ee> - 2023-04-27 10:20 +0200
  Re: Starting stunnel with systemd. Jeffrey Walton <noloader@gmail.com> - 2023-04-24 04:10 +0200
  Re: Starting stunnel with systemd. john doe <johndoe65534@mail.com> - 2023-04-24 09:10 +0200
    Re: Starting stunnel with systemd. <tomas@tuxteam.de> - 2023-04-24 09:50 +0200
      Re: Starting stunnel with systemd. Greg Wooledge <greg@wooledge.org> - 2023-04-24 13:50 +0200

csiph-web