+# Copyright (C) 2012 Steven McDonald <steven@steven-mcdonald.id.au>
+#
# This program is free software. It comes without any warranty, to the
# extent permitted by applicable law. You can redistribute it and/or
# modify it under the terms of the Do What The Fuck You Want To Public
raise AIDS::Infection.new("Service name must be a non-empty string, got #{name.inspect}.")
end
name = $1 if name =~ %r{^/etc/init\.d/(.+)$}
- if name =~ /[^[:alnum:]\-.]/
+ if name =~ /[^[:alnum:]\-._]/
raise AIDS::Infection.new("Invalid init script name: #{name}.")
end
unless File.exist?("/etc/init.d/#{name}")