File zookeeper.service of Package zookeeper
[Unit] Description=Apache ZooKeeper After=network.target ConditionPathExists=/etc/zookeeper/zoo.cfg ConditionPathExists=/etc/zookeeper/log4j.properties ConditionPathExists=/var/lib/zookeeper/data/myid [Service] Type=simple SyslogIdentifier=zookeeper WorkingDirectory=/var/lib/zookeeper ExecStartPre=-/usr/bin/zkCleanTRX.sh /var/lib/zookeeper ExecStart=/usr/bin/zkServer.sh start-foreground /etc/zookeeper/zoo.cfg User=zookeeper Group=zookeeper Restart=always RestartSec=20 [Install] WantedBy=multi-user.target