home
·
contact
·
privacy
projects
/
config
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add reboot to server script.
[config]
/
jessie_start_server.sh
diff --git
a/jessie_start_server.sh
b/jessie_start_server.sh
index fe08c0e6e54bcf9fd22733c7471d3cc8cb5d298d..c21fa914e2830a406de582a5888064f153c5b9f0 100755
(executable)
--- a/
jessie_start_server.sh
+++ b/
jessie_start_server.sh
@@
-78,21
+78,38
@@
su plom -c 'mkdir -p /home/plom/.vimbackups/'
# Set up openssh-server.
apt-get -y install openssh-server
# Set up openssh-server.
apt-get -y install openssh-server
+# Set up mail client system.
+apt-get -y install getmail4 procmail mutt
+su plom -c 'mkdir -p /home/plom/mail'
+su plom -c 'mkdir -p /home/plom/mail/inbox/{cur,new,tmp}'
+
# Set up screen.
apt-get -y install screen
# Set up screen.
apt-get -y install screen
+# Set up ping.
+apt-get -y install iputils-ping
+
# Set up irssi.
apt-get -y install irssi
# Set up irssi.
apt-get -y install irssi
-su plom -c 'screen -S irssi'
-su plom -c 'screen -S irssi -X stuff "irssi\n"'
+cat > /etc/systemd/system/irssi.service << EOF
+[Unit]
+Description=irssi screen
-# Set up mail client system.
-apt-get -y install getmail4 procmail mutt
-su plom -c 'mkdir -p /home/plom/mail'
-su plom -c 'mkdir -p /home/plom/mail/inbox/{cur,new,tmp}'
+[Service]
+Type=forking
+User=plom
+ExecStart=/bin/sh /home/plom/config/other/screen-irssi.sh
+
+[Install]
+WantedBy=multi-user.target
+EOF
+systemctl enable /etc/systemd/system/irssi.service
# Clean up.
rm jessie_start_server.sh
# Set password for user.
passwd plom
# Clean up.
rm jessie_start_server.sh
# Set password for user.
passwd plom
+
+# Finalize everything with a reboot.
+reboot