0

I followed this guide to create a startup script that mounts my shared windows folder and starts my VPN.

However, the script is still not working on the startup. I am currently using VM VirtualBox to emulate Ubuntu 18.04.

The file is in /etc/init.d and its name is winshare.

#! /bin/sh
### BEGIN INIT INFO
# Provides: winshare
# Required-Start: $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: winshare
# Description: This file mounts the shared folder and connects the vpn
# 
### END INIT INFO

mount -t vboxsf Audio_Books /media/windows-share
windscribe login
windscribe connect
  • 1
    Ubuntu 14 had used the upstart init system; version 18 uses systemd. – Ipor Sircer May 31 '18 at 13:19
  • @IporSircer So should I move the start up script to the systemd folder? – Switching Systems May 31 '18 at 13:34
  • No. systemd is totally different from upstart on sysvinit. – Ipor Sircer May 31 '18 at 13:37
  • Best place for the mount is in /etc/fstab. As for the VPN, so long as all you run is the command and there is no required input, creating a user service so it runs in your user slice may be desirable. I'm not familiar with how windscribe works or if it integrates with NetworkManager. – pacmanwa May 31 '18 at 18:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.