Use Archboxctl for managing service.

This commit is contained in:
lemniskett 2021-01-11 13:32:05 +07:00
parent 7f87d53427
commit eda8078a0f
8 changed files with 5 additions and 7 deletions

0
archbox-desktop.bash Executable file → Normal file
View File

0
archbox.bash Executable file → Normal file
View File

0
archboxcommand.bash Executable file → Normal file
View File

0
archboxinit.bash Executable file → Normal file
View File

11
chroot_setup.bash Executable file → Normal file
View File

@ -15,13 +15,10 @@ pacman-key --init
pacman-key --populate archlinux pacman-key --populate archlinux
msg "Installing essential packages..." msg "Installing essential packages..."
pacman -Syu base base-devel xorg pulseaudio nano --noconfirm pacman -Syu base base-devel xorg pulseaudio nano --noconfirm
msg "Installing servicectl..." msg "Installing archboxctl..."
mkdir -p /usr/local/share/servicectl/enabled mkdir -p /usr/local/bin
curl -L 'https://raw.githubusercontent.com/lemniskett/servicectl/master/servicectl' > /usr/local/share/servicectl/servicectl 2>/dev/null curl https://raw.githubusercontent.com/lemniskett/archboxctl/master/archboxctl.bash > /usr/local/bin/archboxctl
curl -L 'https://raw.githubusercontent.com/lemniskett/servicectl/master/serviced' > /usr/local/share/servicectl/serviced 2>/dev/null chmod 755 /usr/local/bin/archboxctl
chmod +x /usr/local/share/servicectl/service{d,ctl}
ln -s /usr/local/share/servicectl/servicectl /usr/local/bin/servicectl
ln -s /usr/local/share/servicectl/serviced /usr/local/bin/serviced
msg "Setting up locale..." msg "Setting up locale..."
echo "Uncomment needed locale, enter to continue" echo "Uncomment needed locale, enter to continue"
read read

0
copyresolv.bash Executable file → Normal file
View File

1
install.sh Executable file → Normal file
View File

@ -8,6 +8,7 @@ install -v -D -m 755 ./copyresolv.bash /usr/local/share/archbox/bin/copyresolv
install -v -D -m 755 ./archboxcommand.bash /usr/local/share/archbox/bin/archbox install -v -D -m 755 ./archboxcommand.bash /usr/local/share/archbox/bin/archbox
install -v -D -m 755 ./remount_run.bash /usr/local/share/archbox/bin/remount_run install -v -D -m 755 ./remount_run.bash /usr/local/share/archbox/bin/remount_run
install -v -D -m 755 ./chroot_setup.bash /usr/local/share/archbox/chroot_setup.bash install -v -D -m 755 ./chroot_setup.bash /usr/local/share/archbox/chroot_setup.bash
install -v -D -m 755 ./archboxctl.bash /usr/local/share/archbox/archboxctl.bash
install -v -D -m 755 ./archboxinit.bash /usr/local/share/archbox/bin/archboxinit install -v -D -m 755 ./archboxinit.bash /usr/local/share/archbox/bin/archboxinit
[[ -z $1 ]] && exit 0 [[ -z $1 ]] && exit 0

0
remount_run.bash Executable file → Normal file
View File