[Unit] Description=Slurm REST daemon Before=slurmackd.service Conflicts=slurmackd.service After=network-online.target slurmctld.service Wants=network-online.target #ConditionPathExists=/etc/slurm/slurm.conf [Service] Type=simple # Enable auth/jwt be default. Environment="SLURM_JWT=daemon" Environment="SOCKET=unix:/usr/com/slurmrestd.socket" Environment="ADDRESS=0.0.0.0:6820" # Use to overwrite/supplement. EnvironmentFile=-/etc/default/slurmrestd # slurmrestd should not run as root or the slurm user. User=webservd Group=webservd # Default to listen on both socket and slurmrestd port ExecStart=/usr/sbin/slurmrestd $ARGS $SOCKET $ADDRESS ExecReload=/bin/kill -HUP $MAINPID [Install] WantedBy=multi-user.target