Masahiro Tanaka created BIGTOP-4182:
---------------------------------------

             Summary: Provide systemd service unit files 
                 Key: BIGTOP-4182
                 URL: https://issues.apache.org/jira/browse/BIGTOP-4182
             Project: Bigtop
          Issue Type: Improvement
            Reporter: Masahiro Tanaka


Currently we do not provide systemd service files for all components. We 
provide init scripts, which are converted to service files by automatic 
conversion by systemd-sysv-generator.
We propose to provide service files in order to implement fine tuning for 
systemd in the future.

 

An example of service file generated by {{ systemd-sysv-generator }} (datanode)

 

{code}

# /run/systemd/generator.late/hadoop-hdfs-datanode.service
# Automatically generated by systemd-sysv-generator

[Unit]
Documentation=man:systemd-sysv-generator(8)
SourcePath=/etc/init.d/hadoop-hdfs-datanode
Description=LSB: Hadoop datanode
Before=multi-user.target
Before=multi-user.target
Before=multi-user.target
Before=graphical.target
After=remote-fs.target

[Service]
Type=forking
Restart=no
TimeoutSec=5min
IgnoreSIGPIPE=no
KillMode=process
GuessMainPID=no
RemainAfterExit=no
PIDFile=/var/run/hadoop-hdfs/hadoop-hdfs-datanode.pid
SuccessExitStatus=5 6
ExecStart=/etc/init.d/hadoop-hdfs-datanode start
ExecStop=/etc/init.d/hadoop-hdfs-datanode stop

{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to