diff options
| author | Simon Rettberg | 2014-01-17 18:40:40 +0100 |
|---|---|---|
| committer | Simon Rettberg | 2014-01-17 18:40:40 +0100 |
| commit | b87e912005f2bf986601f600d25fdd28d88c76e0 (patch) | |
| tree | b733d9204adeba30c13e22442c6848f347437e69 /remote/modules/cron | |
| parent | Merge branch 'master' of dnbd3:openslx-ng/tm-scripts (diff) | |
| download | tm-scripts-b87e912005f2bf986601f600d25fdd28d88c76e0.tar.gz tm-scripts-b87e912005f2bf986601f600d25fdd28d88c76e0.tar.xz tm-scripts-b87e912005f2bf986601f600d25fdd28d88c76e0.zip | |
[cron] Place our own cron in /opt/openslx/...
Diffstat (limited to 'remote/modules/cron')
| -rw-r--r-- | remote/modules/cron/cron.build | 4 | ||||
| -rw-r--r-- | remote/modules/cron/data/etc/systemd/system/cron.service | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/remote/modules/cron/cron.build b/remote/modules/cron/cron.build index fc364347..932c3e85 100644 --- a/remote/modules/cron/cron.build +++ b/remote/modules/cron/cron.build @@ -18,8 +18,8 @@ build() { make cron || perror "Could not compile cron using 'make'." # copy to build dir, since there are no shared libs linked in - mkdir -p "${MODULE_BUILD_DIR}/usr/sbin" - cp "$MODULE_DIR/src/cron" "$MODULE_BUILD_DIR/usr/sbin/" || perror "Could copy cron binary to ${MODULE_BUILD_DIR}" + mkdir -p "${MODULE_BUILD_DIR}/opt/openslx/sbin" + cp "${MODULE_DIR}/src/cron" "${MODULE_BUILD_DIR}/opt/openslx/sbin/" || perror "Could copy cron binary to ${MODULE_BUILD_DIR}" cd - &>/dev/null } diff --git a/remote/modules/cron/data/etc/systemd/system/cron.service b/remote/modules/cron/data/etc/systemd/system/cron.service index 2c5b832a..fbf17b27 100644 --- a/remote/modules/cron/data/etc/systemd/system/cron.service +++ b/remote/modules/cron/data/etc/systemd/system/cron.service @@ -1,7 +1,7 @@ [Unit] -Description=CRON +Description=Cron Daemon [Service] Type=forking -ExecStart=/usr/sbin/cron +ExecStart=/opt/openslx/sbin/cron ExecStop=/opt/openslx/bin/kill -TERM $MAINPID |
