From 7b68abb8f9623b39539f072fefb73145fa7c4a8d Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Sun, 7 Oct 2012 22:43:55 +0200 Subject: 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 --- arch-daemons | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3