mirror of
https://github.com/YunoHost-Apps/movim_ynh.git
synced 2024-09-03 19:46:19 +02:00
systemd script moved to /etc/systemd/system
This commit is contained in:
parent
d11840adb3
commit
298d469046
4 changed files with 6 additions and 7 deletions
4
TODO
4
TODO
|
@ -1,4 +1,2 @@
|
|||
- Check if Yes and yes are both working
|
||||
- Sysvinit script syslog
|
||||
- Log to /var/log/movim/
|
||||
- systemd Log to /var/log/movim/
|
||||
- write systemd service to /etc/systemd/system
|
||||
|
|
|
@ -106,7 +106,7 @@ sudo sed -i "s@YHPORT@$port@g" ../conf/movim.{service,init}
|
|||
initcheck=`pgrep -ox systemd`
|
||||
if [ "$initcheck" = "1" ];
|
||||
then
|
||||
sudo cp ../conf/movim.service /lib/systemd/system/
|
||||
sudo cp ../conf/movim.service /etc/systemd/system/
|
||||
sudo systemctl enable movim.service
|
||||
sudo systemctl start movim.service
|
||||
else
|
||||
|
|
|
@ -10,8 +10,8 @@ sudo /etc/init.d/movim stop
|
|||
sudo systemctl stop movim.service
|
||||
sudo systemctl disable movim.service
|
||||
sudo update-rc.d -f movim remove
|
||||
sudo rm /etc/init.d/movim
|
||||
sudo rm /lib/systemd/system/movim.service
|
||||
sudo rm -f /etc/init.d/movim
|
||||
sudo rm -f /lib/systemd/system/movim.service
|
||||
|
||||
#Drop database, movim files and user.
|
||||
mysql -u root -p$root_pwd -e "DROP DATABASE $db_name ; DROP USER $db_user@localhost ;"
|
||||
|
|
|
@ -51,7 +51,8 @@ sudo sed -i "s@YHPORT@$port@g" ../conf/movim.{service,init}
|
|||
initcheck=`pgrep -ox systemd`
|
||||
if [ "$initcheck" = "1" ];
|
||||
then
|
||||
sudo cp ../conf/movim.service /lib/systemd/system/
|
||||
sudo rm -f /lib/systemd/system/movim.service
|
||||
sudo cp ../conf/movim.service /etc/systemd/system/
|
||||
sudo systemctl daemon-reload
|
||||
else
|
||||
sudo /etc/init.d/movim stop
|
||||
|
|
Loading…
Reference in a new issue