Jafner.net/archive/pamidi/install_daemon_systemd.sh

15 lines
353 B
Bash
Raw Normal View History

2021-11-11 12:32:28 -08:00
#!/bin/bash
echo "Installing script..."
chmod +x pamidi.sh
2021-11-11 15:23:07 -08:00
sudo cp pamidi.sh /usr/bin/pamidi
2021-11-11 12:32:28 -08:00
echo "Installing daemon..."
mkdir -p ~/.config/systemd/user/
cp pamidi.service ~/.config/systemd/user/
echo "Enabling systemd daemon..."
systemctl --user daemon-reload
systemctl --user enable pamidi.service
systemctl --user start pamidi.service
2021-11-11 15:20:49 -08:00
echo "Done!"