> -----Original Message----- > From: David Bigagli [mailto:[email protected]] > Sent: 星期三, 三月 25, 2015 1:19 > To: slurm-dev > Subject: [slurm-dev] Re: successful systemd service start on RHEL7? > > > It should build just fine on CentOS7 we tried it several times. In the > etc directory under the source code there are examples of service files. > The rpm installs the service files as well.
Which rpm has the related service files? I just saw init file like following: rpm -ql slurm-14.11.5-1.el7.x86_64 /etc/init.d/slurm /etc/ld.so.conf.d /etc/ld.so.conf.d/slurm.conf /etc/slurm /etc/slurm/cgroup.conf.example /etc/slurm/cgroup.release_common.example /etc/slurm/cgroup/release_cpuset /etc/slurm/cgroup/release_freezer /etc/slurm/cgroup/release_memory /etc/slurm/cgroup_allowed_devices_file.conf.example /etc/slurm/slurm.conf.example /etc/slurm/slurm.epilog.clean /usr/bin/sacct /usr/bin/sacctmgr /usr/bin/salloc /usr/bin/sattach ... ... ... And yes, I copied and modified the sample service file from etc folder under source tree like following: [Unit] Description=Slurm controller daemon After=network.target ConditionPathExists=/tool/slurm/14.11.5/etc/slurm.conf [Service] Type=forking #EnvironmentFile=/etc/default/slurmctld ExecStart=/tool/slurm/14.11.5/sbin/slurmctld PIDFile=/run/slurm/slurmctld.pid [Install] WantedBy=multi-user.target Thanks. Fred
