Category Archives: Nezaradené

Example systemd unit config

/etc/systemd/system/my-service.service

[Unit]
Description=My super service
After=network.target

[Service]
ExecStart=/full/path
#Type=forking
#PIDFile=
Restart=always
User=root
Group=root
WorkingDirectory=/opt/service/
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=my-service
Environment=PATH=/bin

[Install]
WantedBy=multi-user.target

systemctl daemon-reload
systemctl enable my-service

USB switch for 2 PC under Linux

Hi there!

As you can note from previous blogs, I love to buy strange devices directly from china :). This time I needed to connect one USB device to 2 computers (servers) so i fired up ebay and aliexpress and found this:IMG_20150529_180442
http://www.aliexpress.com/item/USB-2-0-Sharing-Switch-Hub-2-PC-to-1-Printer-Scanner-Newrok-Switcher-Wholesale/2037808594.html
The description doesn’t say anything about Linux support, but I thougt: “Come on… how complicated can it be?” Continue reading