Skip to content
/ ack Public

Service that daemonize your task on Linux in one-line command

License

Notifications You must be signed in to change notification settings

medowic/ack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ack

This is a service that run a task in the bACKground (daemonizing it). It's NOT a container (as Docker) or a virtual machine. The service just starts the app in the daemon.

Install

git clone https://github.com/medowic/ack.git
cd ack
bash install.sh

Usage

Start app in background:

When you start an app, the daemon gets the user by which the app was started, and the working directory in daemon is equal to the current directory.

Command is required to start the script (or app), if there is no shebang at the head of the file.

You must start the daemon using sudo

sudo ack [command]

Also, you can start daemon as root with rack

sudo rack [command]

Show working daemons:

This command show all working daemons at the moment

$ sudo ack -l
List of working daemons:
1 # 65535 "python3 main.py 'Hello World!'" as root
2 # ...
3 # ...

Restart daemon:

sudo ack -r [taskid]

For example, we have daemon with id 65535

$ sudo ack -r 65535
Daemon with id 65535 was restarted

Stop daemon:

This command stop the daemon and delete service file

sudo ack -s [taskid]

For example, we have daemon with id 65535

$ sudo ack -s 65535
Daemon with id 65535 was stopped

Flags

  • -s, --stop - stop the daemon and delete service file
  • -r, --restart - restart the daemon
  • -l, --list - shows the started daemons with ID, command and daemon-user

License

This is project is under the MIT License

About

Service that daemonize your task on Linux in one-line command

Resources

License

Stars

Watchers

Forks