Hacker News new | past | comments | ask | show | jobs | submit login

So instead of two kill messages, we now have two scripts to run, dependent on name or pid?

Just put everything in one script - these scripts are shorter than an init boilerplate section - and use an option to switch. Do process names by default, then perhaps use a -p arg to switch the script into 'pid' mode. Bash's 'getopts' is pretty easy to implement.

As it stands, you currently have to waste mental power to figure out whether you want the 'n' or 'p' version anyway, so may as well just make it an arg.




Is the functionality even needed? Doesn't take much to type..

ksm `pidof cupsd`




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: