diff options
author | Tom Gundersen <teg@jklm.no> | 2012-10-07 22:43:55 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2012-10-07 22:43:55 +0200 |
commit | 7b68abb8f9623b39539f072fefb73145fa7c4a8d (patch) | |
tree | ec4d3d1be34ec2064fa7c426066c8733de47333f | |
parent | 2f33b947d7c2d48a98423cab24929100e56d94a6 (diff) | |
download | initscripts-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-x | arch-daemons | 3 |
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 |