2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-11-25 20:02:19 +00:00
Files
xcat-core/xCAT-server/etc/init.d/xcatd.service
T
Daniel Hilst 07b7041011 docs(xcat-core): two comments name the domain xcatd no longer runs in
The unit file and xcatd_service_direct_exec.t said that a direct ExecStart
keeps xcatd out of initrc_t and in unconfined_service_t. The entrypoint of
the xcat_t domain is the xcatd script, so a shell in ExecStart now costs the
domain, not the confinement.

Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
2026-10-14 16:55:48 -03:00

27 lines
827 B
Desktop File

[Unit]
Description=xCAT management service
After=network.target syslog.service
[Service]
# A shell in ExecStart runs in initrc_t. xcatd must start directly, so the
# kernel enters xcat_t on the xcatd script.
Environment=XCATROOT=/opt/xcat PERL_BADLANG=0
Environment=PATH=/opt/xcat/bin:/opt/xcat/sbin:/opt/xcat/share/xcat/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
EnvironmentFile=-/etc/sysconfig/xcat
Type=forking
PIDFile=/run/xcatd.pid
RuntimeDirectory=xcat
RuntimeDirectoryMode=0755
ExecStart=/usr/sbin/xcatd -p /run/xcatd.pid
ExecStop=/bin/sh -c 'if [ -s /run/xcatd.pid ]; then kill -TERM "$(cat /run/xcatd.pid)" 2>/dev/null || true; fi'
LimitNOFILE=16000
RemainAfterExit=no
Restart=on-failure
RestartSec=5s
TimeoutStartSec=600
TimeoutStopSec=30
KillMode=mixed
[Install]
WantedBy=multi-user.target