Skip to content
/ dmz Public

Linux shell command daemonizer and manager.

License

Notifications You must be signed in to change notification settings

Mitsos101/dmz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

dmz - v0.2

Note: This software was written for personal educational purposes, meaning it might contain bugs and not work as intended. Use with caution. There are also other tools out there which serve the same purpose/use; you might be willing to choose those for production environments or daily use.

A simple tool to easily manage and daemonize userspace applications on linux operating systems.

Usage

Usage: dmz [option(s)] [argument] ...
-e [cmd]       - Daemonizes a shell command and redirects its output to a file.
                    e.g. dmz -e "/usr/bin/dmesg --follow"
-c [dir_path]  - Optional which goes along with -e, changes the working directory of the daemon.
-t             - Optional which goes along with -e. Appends a timestamp on each line on daemon's output.
-l             - Lists all running daemons initiated by dmz.
-d [dmz_id]    - Destroys a daemon by sending a SIGKILL signal to its process and deleting its log file.
                 Use the -l option to check dmz ids and -s to save its log file.
-s [dir_path]  - Optional. Used along with -d to keep a log file, moves the file (with filename its dmz id) to that directory.
-h             - Displays this usage message.

Installation

Just clone this git repository and:

gcc dmz.c -o dmz

Or use some other compiler of your choice.

License

GNU GPL v3, see LICENSE for more info.

About

Linux shell command daemonizer and manager.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published