This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
how_to_install_tonido_on_2.3_vba [2016/02/06 22:38] ron |
how_to_install_tonido_on_2.3_vba [2016/02/23 23:31] ron |
||
---|---|---|---|
Line 56: | Line 56: | ||
/usr/local/tonido/tonido.sh stop | /usr/local/tonido/tonido.sh stop | ||
mv /usr/local/tonido /usr/local/tonido.bak | mv /usr/local/tonido /usr/local/tonido.bak | ||
+ | </code> | ||
+ | If you wish to start with a fresh configuration: | ||
+ | <code> | ||
mv /root/tonido /root/tonido.bak | mv /root/tonido /root/tonido.bak | ||
</code> | </code> | ||
Line 111: | Line 114: | ||
To access your personal Tonido Cloud on an iPhone or iPad, install the free Tonido App from the App Store. Login and setup a passcode for additional security. | To access your personal Tonido Cloud on an iPhone or iPad, install the free Tonido App from the App Store. Login and setup a passcode for additional security. | ||
- | 9. To have Tonido autostart at boot, edit /usr/local/sbin/network_up.sh. Note: this file may not exist when you try to edit it. Just enter the nano command and the file will be created when you write the file and exit nano. | + | 9. Create service file for Tonido: |
+ | A service file allows Tonido to be controlled by the systemctl command to start, stop, and get status. | ||
+ | |||
+ | Create and edit the service file: | ||
+ | <code>nano /lib/systemd/system/tonido.service</code> | ||
+ | Add the following lines to the file: | ||
<code> | <code> | ||
- | nano /usr/local/sbin/network_up.sh | + | [Unit] |
- | </code> | + | Description=Tonido Server |
+ | After=local-fs.target network.target | ||
- | Add the line | + | [Service] |
+ | Type=forking | ||
+ | User=root | ||
+ | ExecStart=/usr/local/tonido/tonido.sh start | ||
+ | ExecStop=/usr/local/tonido/tonido.sh stop | ||
+ | Restart=on-failure | ||
+ | RestartSec=5 | ||
- | <code> | + | [Install] |
- | /usr/local/tonido/tonido.sh start | + | WantedBy=multi-user.target |
</code> | </code> | ||
- | |||
- | to the end of the file. | ||
Write the file (**control-o**) and exit (**control-x**). | Write the file (**control-o**) and exit (**control-x**). | ||
+ | |||
+ | To start Tonido: | ||
+ | <code>systemctl start tonido</code> | ||
+ | |||
+ | To stop Tonido: | ||
+ | <code>systemctl stop tonido</code> | ||
+ | |||
+ | To check Tonido status: | ||
+ | <code>systemctl status tonido</code> | ||
+ | |||
+ | To enable autostart at boot: | ||
+ | <code>systemctl enable tonido</code> | ||
+ | |||
+ | To disable autostart at boot: | ||
+ | <code>systemctl disable tonido</code> | ||
10. Delete work files: | 10. Delete work files: | ||
Line 131: | Line 159: | ||
rm -rf /tmp/tonido | rm -rf /tmp/tonido | ||
</code> | </code> | ||
- | 11. If you are happy with the new install, and want to delete the backup (if you created it in step 3): | + | 11. If you are happy with the new install, and want to delete the backups (if you created them in step 4): |
<code> | <code> |