aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2012-10-07 20:43:55 (GMT)
committerTom Gundersen <teg@jklm.no>2012-10-07 20:43:55 (GMT)
commit7b68abb8f9623b39539f072fefb73145fa7c4a8d (patch)
treeec4d3d1be34ec2064fa7c426066c8733de47333f
parent2f33b947d7c2d48a98423cab24929100e56d94a6 (diff)
downloadinitscripts-7b68abb8f9623b39539f072fefb73145fa7c4a8d.tar.xz
arch-daemons: warn more loudly when a legacy rc script is being used
This should hopefully help against people accidentally both using legacy units and native units for the same service at the same time. Signed-off-by: Tom Gundersen <teg@jklm.no>
-rwxr-xr-xarch-daemons3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch-daemons b/arch-daemons
index b4398b4..f77dc6e 100755
--- a/arch-daemons
+++ b/arch-daemons
@@ -32,9 +32,10 @@ create_unit() {
'[Unit]
SourcePath=/etc/rc.conf
Documentation=man:arch-daemons(8)
-Description=Legacy unit for %s
+Description=LEGACY unit for "%s" rc script
%s
[Service]
+ExecStartPre=/usr/bin/echo "WARNING: A legacy rc script is being used. Consider removing this from your DAEMONS array and enabling a native systemd service instead."
ExecStart=/etc/rc.d/%s start
ExecStop=/etc/rc.d/%s stop
RemainAfterExit=yes