Skip to content

Commit 0915729

Browse files
alyssa-smRachaelSTamakloe
authored andcommitted
Merge pull request GoogleCloudPlatform#4614 from alyssa-sm/sudoify
Add sudo to systemctl restart (cherry picked from commit c126306)
1 parent 6b8beb6 commit 0915729

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • community/modules/scheduler/schedmd-slurm-gcp-v6-controller/modules/slurm_files/scripts

community/modules/scheduler/schedmd-slurm-gcp-v6-controller/modules/slurm_files/scripts/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2224,6 +2224,6 @@ def update_config(cfg: NSDict) -> None:
22242224

22252225
def scontrol_reconfigure(lkp: Lookup) -> None:
22262226
log.info("Running systemctl restart slurmctld.service")
2227-
run("systemctl restart slurmctld.service", timeout=30)
2227+
run("sudo systemctl restart slurmctld.service", timeout=30)
22282228
log.info("Running scontrol reconfigure")
22292229
run(f"{lkp.scontrol} reconfigure")

0 commit comments

Comments
 (0)