a0991412025 / shellinabox

Automatically exported from code.google.com/p/shellinabox
Other
0 stars 0 forks source link

please add systemd unit file #263

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
please add a native systemd unit file

I see that /etc/init.d/shellinabox is really complex.

Here is the service provided by Arch that can be used as 
a starting point.

This should go in /lib/systemd/system/shellinabox.service
or in /etc/systemd/system/shellinabox.service during tests.

#######

[Unit]                                                                          

Description=Serve a login-terminal over http on  port 4200.                     

Required=sshd.service                                                           

After=sshd.service                                                              

[Service]                                                                       

User=root                                                                       

Type=forking                                                                    

EnvironmentFile=/etc/conf.d/shellinaboxd                                        

ExecStart=/usr/bin/shellinaboxd  $SHELLINABOXD_ARGS                             

ExecReload=/bin/kill -HUP $MAINPID                                              

KillMode=process                                                                

Restart=on-abort                                                                

[Install]                                                                       

WantedBy=multi-user.target 

Original issue reported on code.google.com by alexandr...@gmail.com on 4 Sep 2014 at 8:28