From: Jacques Montier <jmontier@gmail.com>
To: "gentoo-user@lists.gentoo.org" <gentoo-user@lists.gentoo.org>
Subject: Re: [gentoo-user] Systemd query ...
Date: Tue, 16 May 2023 21:32:17 +0200 [thread overview]
Message-ID: <CAHVEG0AbVKvsY8XzfNbdRU2VErJwcsH_mMZQh1yDdEw_rBpDjg@mail.gmail.com> (raw)
In-Reply-To: <20230516195821.2550c1d2@digimed.co.uk>
[-- Attachment #1: Type: text/plain, Size: 2129 bytes --]
Le mar. 16 mai 2023, 20:58, Neil Bothwick <neil@digimed.co.uk> a écrit :
> On Tue, 16 May 2023 20:03:36 +0200, Jacques Montier wrote:
>
> > It was very difficult to get Apache working with systemd Gentoo.
> > No apache2.service found with apache installation.
>
> Really?
>
> % qfile apache2.service
> www-servers/apache: /lib/systemd/system/apache2.service
>
> Yes.
>
After install, apache2.service not found...
>
>
> > so i looked at the Linux Mint OS to copy the apache2.service.
> > These commands
> >
> > ExecStart=/usr/sbin/apachectl start
> > ExecStop=/usr/sbin/apachectl graceful-stop
> > ExecReload=/usr/sbin/apachectl graceful
> >
> > did not work at all...
>
> % systemctl cat apache2.service
> # /lib/systemd/system/apache2.service
> [Unit]
> Description=The Apache HTTP Server
> After=network.target remote-fs.target nss-lookup.target
>
> [Service]
> EnvironmentFile=/etc/conf.d/apache2
> ExecStart=/usr/sbin/apache2 $APACHE2_OPTS -DFOREGROUND
> ExecReload=/usr/sbin/apache2 $APACHE2_OPTS -k graceful
> ExecStop=/usr/sbin/apache2 $APACHE2_OPTS -k graceful-stop
> # We want systemd to give httpd some time to finish gracefully, but still
> want # it to kill httpd after TimeoutStopSec if something went wrong
> during the # graceful stop. Normally, Systemd sends SIGTERM signal right
> after the # ExecStop, which would kill httpd. We are sending useless
> SIGCONT here to give # httpd time to finish.
> KillSignal=SIGCONT
> PrivateTmp=true
> #Hardening
> CapabilityBoundingSet=CAP_CHOWN CAP_SETGID CAP_SETUID CAP_DAC_OVERRIDE
> CAP_KILL CAP_NET_BIND_SERVICE CAP_IPC_LOCK
> SecureBits=noroot-locked
> ProtectSystem=full
> PrivateDevices=true
> MemoryDenyWriteExecute=true
>
> [Install]
> WantedBy=multi-user.target
>
>
> --
> Neil Bothwick
>
> K: (n., adj.) a binary thousand, which isn't a decimal thousand or even
> really a binary thousand (which is eight), but is the binary number
> closest to a decimal thousand. This has proven so completely confusing
> that it has become a standard.
>
Thanks Neil, i'll have a try.
--
Jacques
>
[-- Attachment #2: Type: text/html, Size: 3045 bytes --]
next prev parent reply other threads:[~2023-05-16 19:32 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-15 9:58 [gentoo-user] Systemd query Wols Lists
2023-05-16 18:03 ` Jacques Montier
2023-05-16 18:58 ` Neil Bothwick
2023-05-16 19:32 ` Jacques Montier [this message]
2023-05-16 19:42 ` Rich Freeman
2023-05-17 8:43 ` Jacques Montier
2023-05-17 9:29 ` Rich Freeman
2023-05-17 10:18 ` Jacques Montier
2023-05-17 10:29 ` Rich Freeman
2023-05-17 0:41 ` David M. Fellows
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAHVEG0AbVKvsY8XzfNbdRU2VErJwcsH_mMZQh1yDdEw_rBpDjg@mail.gmail.com \
--to=jmontier@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox