torque_install/torque/contrib/systemd/pbs_sched.service.in
ruoyunbai 2bb9621e30 1
2021-09-29 21:06:16 +08:00

24 lines
584 B
SYSTEMD

[Unit]
Description=TORQUE pbs_sched daemon
Requires=network.target local-fs.target
Wants=syslog.target
After=network.target local-fs.target syslog.target
[Service]
Type=forking
User=root
# Do not set PIDFile via enviroment PBS_HOME
# better to change to PIDFile=/var/run/%i.pid
# and cleanup all code that relies on the current location of the PIDFile
PIDFILE=@PBS_HOME@/sched_priv/sched.lock
Environment=PBS_HOME=@PBS_HOME@
Environment=PBS_ARGS=
EnvironmentFile=-/etc/sysconfig/pbs_sched
ExecStart=@sbindir@/pbs_sched -d $PBS_HOME $PBS_ARGS
[Install]
WantedBy=multi-user.target