Adding startup items in systemd is complex and cumbersome.
To make this more convenient, I have wirte a tool add_service providewhich provides a simple way to quickly add startup item in systemd.
Install:
pip3 install add_service
Usage:
python -m add_service [shell_file/cmd] [user (default `whoami`)]
Examples:
Install:
pip install add_service
Usage:
python -m add_service [shell_file/cmd] [user (default `whoami`)]
Examples:
python -m add_service ssh_nat.sh # user by default user is `whoami`
python -m add_service "`which python3` -m http.server 80" root