Skip to content

Managing services

scubamuc edited this page May 9, 2025 · 9 revisions

Documentation

Snapcraft documentation


View Nextcloud snap processes in htop

htop -F nextcloud

View Snap services for Nextcloud snap

sudo snap services <SNAPNAME>

Example:

sudo snap services nextcloud

View service-logs for Nextcloud snap

sudo snap logs <SNAPNAME>.<SERVICE>

Example:

sudo snap logs nextcloud.nextcloud-cron

Journalctl service logs

example of service logs:

Logs for Apache service: 'journalctl -u snap.nextcloud.apache.service'
Logs for Mysql service:  'journalctl -u snap.nextcloud.mysql.service'

Manage Nextcloud snap service using get and set

View configuration with get:

sudo snap get <SNAPNAME> <SERVICE>-<SETTING>

Example:

sudo snap get nextcloud nextcloud.cron-interval

Configure service with set:

sudo snap set <SNAPNAME> <SERVICE>.<SETTING>=<value>

Example:

sudo snap set nextcloud nextcloud.cron-interval=5m

Start Nextcloud snap service

sudo snap start <SNAPNAME>.<SERVICE>

Example:

sudo snap start nextcloud.nextcloud-cron

Restart Nextcloud snap service

sudo snap restart <SNAPNAME>.<SERVICE>

Example:

sudo snap restart nextcloud.nextcloud-cron

Stop Nextcloud snap service

sudo snap stop <SNAPNAME>.<SERVICE>

Example:

sudo snap stop nextcloud.nextcloud-cron

Disable Nextcloud snap service

sudo snap stop --disable <SNAPNAME>.<SERVICE>

Example:

sudo snap stop --disable nextcloud.renew-certs

Enable Nextcloud snap service

sudo snap start --enable <SNAPNAME>.<SERVICE>

Example:

sudo snap start --enable nextcloud.renew-certs

Clone this wiki locally