Separate system configuration from Dotfiles_ArchAP. Add package manifests, system inventories, reusable templates, safer backup/deployment scripts, on-demand service management, TLP and zram configuration, and updated maintenance documentation.
32 lines
527 B
Bash
Executable file
32 lines
527 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
readonly START_SERVICES=(
|
|
vmware-networks.service
|
|
vmware-usbarbitrator.service
|
|
smb.service
|
|
nmb.service
|
|
)
|
|
|
|
readonly STOP_SERVICES=(
|
|
nmb.service
|
|
smb.service
|
|
vmware-usbarbitrator.service
|
|
vmware-networks.service
|
|
)
|
|
|
|
case "${1:-}" in
|
|
start)
|
|
systemctl start "${START_SERVICES[@]}"
|
|
;;
|
|
|
|
stop)
|
|
systemctl stop "${STOP_SERVICES[@]}"
|
|
;;
|
|
|
|
*)
|
|
printf 'Usage : %s {start|stop}\n' "$0" >&2
|
|
exit 2
|
|
;;
|
|
esac
|