Skip to main content
disclose
Source Link
Yang
  • 161
  • 3

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

Adding startup items in systemd is complex and cumbersome.
 add_service provide a simple way to quickly add startup item in systemd.

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 is `whoami`
    python -m add_service "`which python3` -m http.server 80" root

Adding startup items in systemd is complex and cumbersome. To make this more convenient, I have wirte a tool add_service which 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:

python -m add_service ssh_nat.sh  # by default user is `whoami`
python -m add_service "`which python3` -m http.server 80" root
Source Link
Yang
  • 161
  • 3

Adding startup items in systemd is complex and cumbersome.
add_service provide a simple way to quickly add startup item in systemd.

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 is `whoami`
    python -m add_service "`which python3` -m http.server 80" root