Mirror

Vova Tkach b8a4ad1a4a Update README file 6 years ago
LICENSE 1b0d5be305 Initial commit 6 years ago
Makefile 1ee13d1a69 Fix logrotate 6 years ago
README.md b8a4ad1a4a Update README file 6 years ago

README.md

bash-daemon-maker

Daemon auto assembly by make utility for bash-empty-daemon

Dependences

apt-get install make
apt-get install wget
apt-get install unzip

And root access.

How to use

su root
apt-get install make; apt-get install wget; apt-get install unzip; mkdir ~/tmpdaemon; cd ~/tmpdaemon; wget -O Makefile https://github.com/vladimirok5959/bash-daemon-maker/releases/download/latest/Makefile; make
make install NAME=my-service

Check for dependences...
Check directories...
Download latest empty daemon...
Installing...
Create symlink...
Create config file for logrotate...
Done! Daemon with name 'my-service' successfully generated!

cd ~; rm -rd ~/tmpdaemon

Now we can simply edit daemon /etc/my-service/loop.sh file for our logic.

Auto assembly created for and works only on Linux Debian.
For MAX OS X you will needs to change vars BINDIR, LROTDIR and INSTALLDIR to new location.

TODO: Add autorun for daemon at system startup.