Openhabian starts itself on its own after openhab-cli stop

Hi everyone

I wanted too edit some item names these are well established already so i use vscode find and replace all and openhab has too be offline too do this but SMB shares still online

so i use the command sudo openhab-cli stop

this stops openhab from running but leaves the rest of my RPI online for editing but i have noticed that openhab is starting itself without me rebooting or running sudo openhab-cli start

is this normal behaviour its annoying if my system comes back online while editing files in this manner it does cause upset i nearly lost my setup last time this happened

2018-07-25 20:34:33.530 [INFO ] [arthome.ui.paper.internal.PaperUIApp] - Stopped Paper UI

2018-07-25 20:34:33.630 [INFO ] [panel.internal.HABPanelDashboardTile] - Stopped HABPanel

2018-07-25 20:34:33.657 [INFO ] [er.internal.HomeBuilderDashboardTile] - Stopped Home Builder

2018-07-25 20:34:33.687 [INFO ] [.dashboard.internal.DashboardService] - Stopped Dashboard

2018-07-25 20:34:54.687 [INFO ] [er.internal.HomeBuilderDashboardTile] - Started Home Builder at /homebuilder

2018-07-25 20:34:55.724 [INFO ] [.core.internal.i18n.I18nProviderImpl] - Time zone set to 'Europe/London'.

2018-07-25 20:34:55.741 [INFO ] [.core.internal.i18n.I18nProviderImpl] - Locale set to 'en_GB'.

2018-07-25 20:34:55.744 [INFO ] [.core.internal.i18n.I18nProviderImpl] - Measurement system set to 'SIUnits'.

2018-07-25 20:34:57.731 [INFO ] [.dashboard.internal.DashboardService] - Started Dashboard at

2018-07-25 20:34:57.737 [INFO ] [.dashboard.internal.DashboardService] - Started Dashboard at

2018-07-25 20:34:58.377 [INFO ] [io.openhabcloud.internal.CloudClient

Why? No need for openHAB being stopped…

Can’t help with the autostart, not using openHABian (or apt-repo) :sunglasses:

It upsets the system if you change item names while it’s running I have done it a few times it does not like it

I mean a full system scan of every file and change any instance of the name in the logs in persistence everywhere it just doesent like it

Systemd is running openhab2 as a service and it makes sure that it is always running.

You need to tell systemd that you want the service stopped:

sudo systemctl stop openhab2

Use start to start it again and use status to see if it is started or stopped.

1 Like

It does say something about that underneath but I thought it was stopped as I have used the status part before and it says stopped

I didn’t realise it worked like that :wink: