Reindl Harald:
Am 05.07.2013 23:03, schrieb [email protected]:
Yes your command works standalone, and mine does too. The difference is yours
does not release the shell. Maybe
this is necessary for process tracking?
if you think about how "Restart=always" works clearly *yes*
But neither one sets up a listener when run as a systemd service. I've been
using my command for five years and I
know it works. There must be something about the .service file that I don't
recognize.
yes, you need a ssh-command which does not release the shell like mine
because otherwise systemd assumes it has failed and restarts over and over
Yup, I took off -f from mine, and now yours and mine work as a service.
Thanks Reindl!
---------------------------------------------------------------
[Unit]
Description=tunnel for Squid
After=network.service
[Service]
Type=simple
#ExecStart=/usr/bin/ssh -l sleeper -i /home/sleeper/.ssh/id_ecdsa droog
-N -C -L127.0.0.1:3128:127.0.0.1:3128 droog
ExecStart=/usr/bin/ssh -l sleeper -i /home/sleeper/.ssh/id_ecdsa -2 -4
-N -c aes256-ctr,aes128-ctr -L 3128:127.0.0.1:3128 droog sleep 365d
Restart=always
RestartSec=60
TimeoutSec=30
[Install]
WantedBy=multi-user.target
---------------------------------------------------------------
_______________________________________________
systemd-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/systemd-devel