aboutsummaryrefslogtreecommitdiff
path: root/sysutils/condor/files/condor-config.in
blob: e90dd81b22ab27c0fd65f86dbf574edd86ee5ed8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh -e

if [ -z $EDITOR ]; then
    EDITOR=vi
    export EDITOR
fi

$EDITOR %%PREFIX%%/etc/condor_config.local

printf "Restart HTCondor? (y/[n]) "
read restart

if [ 0$restart = 0y ]; then
    service condor stop
    printf "\nCondor processes running after stop:\n\n"
    ps ax | grep condor

    service condor start
    sleep 5
    printf "\nCondor processes running after start:\n\n"
    ps ax | grep condor
fi