blob: 515bff05fd04269ec93468161b2fdeca558e9518 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
diff --git a/initify.pl b/initify.pl
index 7cec3d2..acbfad3 100755
--- a/initify.pl
+++ b/initify.pl
@@ -9,6 +9,11 @@ use feature "switch";
use Getopt::Long;
use Pod::Usage;
+unless (-e $ARGV[0]) {
+ print "can not find service file: '$ARGV[0]' - quitting\n";
+ exit;
+}
+
my $type = "simple";
my @cmds_start = ();
my @cmds_stop = ();
|