jordansissel/pleaserun sits at 1.2k stars on GitHub, written primarily in Ruby. An attempt to abstract this "init" script madness.
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
Pleaserun is a tool to generate startup scripts and service definitions. It targets
service managers such as systemd, Upstart, launchd, sysv init, and runit.
Ideally, you should be able to specify a configuration of how to run a given
service command (like apache, syslog-ng, whatever), and this tool should
be able to spit out a script or config file for your target platform.
Project Principles
Community: If a newbie has a bad time, it's a bug.
Engineering: Make it work, then make it right, then make it fast.
Capabilities: If it doesn't do a thing today, we can make it do it tomorrow.
What's going on here?
With pleaserun, you can generate the following launchers/scripts/whatever:
launchd
upstart
systemd
runit
sysv init
Want more? I want it to be easy to add things and invite you to file an issue with your ideas.
Installation
gem install pleaserun
Your First Process
First, we need a program to run!
Example: redis
For no particular reason, this example will choose redis to run. The idea is to
simulate the same workflow you would normally go through in production: acquire
software, deploy it, run it. Pleaserun helps you with the 'run it' part, but
first let's get redis and build it.
wget http://download.redis.io/releases/redis-2.8.6.tar.gz
tar -zxf redis-2.8.6.tar.gz
cd redis-2.8.6
make -j4
make install PREFIX=/tmp/redis
Assuming the above succeeds (it did for me!), we now have redis installed to /tmp/redis:
% ls /tmp/redis/bin
redis-benchmark redis-check-aof redis-check-dump redis-cli redis-server
You might be thinking - why /tmp? This is just a demo! That's why! :)
Generate a runner
What platform are you on? Do you know the best way to run a server process? I
can never remember.
Luckily, pleaserun remembers.
# Run as root so pleaserun has permissions to write to
# any files required to install this as a service!
% sudo pleaserun --install /tmp/redis/bin/redis-server
No platform selected. Autodetecting... {:platform=>"upstart", :version=>"1.5", :level=>:warn}
No name given, setting reasonable default {:name=>"redis-server", :level=>:warn}
Writing file {:destination=>"/etc/init/redis-server.conf"}
Writing file {:destination=>"/etc/init.d/redis-server"}
Note: The --install flag above tells pleaserun to install it on this current system. The
default behavior without this flag is to install it in a temp directory so you can copy
it elsewhere if desired.
Now what? You can see above it automatically detected that "Upstart 1.5" was
the right process runner to target. Let's try using it!
% status redis-server
redis-server stop/waiting
% sudo start redis-server
redis-server start/running, process 395
% status redis-server
redis-server start/running, process 395
% ps -fwwp 395
UID PID PPID C STIME TTY TIME CMD
root 395 1 0 06:27 ? 00:00:00 /tmp/redis/bin/redis-server *:6379
# Is it running? Let's check with redis-cli
% redis-cli
127.0.0.1:6379> ping
PONG
% sudo stop redis-server
redis-server stop/waiting
Bam. Pretty easy, right? Let's recap!
Recap
You ran pleaserun --install /tmp/redis/bin/redis-server
Pleaserun detected the platform as Upstart 1.5
You didn't have to write an init script.
You didn't have to know how to write an Upstart config.
Overview
See pleaserun --help for a list of flags. Basics:
-p lets you set the platform to target. If not specified, this is
automatically detected based on your current system/environment.
-v lets you set the version of the platform to target. Useful in cases
where things like Upstart 0.6.5 differ wildly in configuration from Upstart
1.5
--name the name of the process. This shows up as
/etc/init.d/the-name-you-give for sysv, or the name you use to reference the
service with upstart, systemd, or launchd, etc!
--prestart lets you run a command before starting the main program. This
can be used to do config or validation checks before you start a program. If
the prestart exits nonzero, the start of the process will be aborted.
Does jordansissel/pleaserun have a project website?
No homepage URL was recorded for jordansissel/pleaserun in TopGit's last sync. The README tab above frequently contains screenshots and demo links, or check the repository description on GitHub.
Does jordansissel/pleaserun have any tags?
TopGit's last sync did not record any GitHub topics for jordansissel/pleaserun. GitHub topics appear in the right sidebar of a repository page; that's the authoritative place to check.
How active is development on jordansissel/pleaserun?
The most recent commit recorded on jordansissel/pleaserun was 2 months ago, based on the GitHub push timestamp. The repository has 76 forks — one of the better signals of community interest.
Is jordansissel/pleaserun open source?
TopGit's metadata for jordansissel/pleaserun does not record a license. Most public repositories on GitHub ARE open source, but the exact terms vary — verify by opening the LICENSE file directly.
Where do I read more about jordansissel/pleaserun?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/jordansissel/pleaserun is the definitive source.
Read full README in the tab above.
Curious whether pleaserun is right for you?
Let ChatGPT, Claude, or Perplexity look into it — click below and see what AI actually says about pleaserun.