Creating services based on command-line scripts