 
 started = false
 
-exports.start = ->
+exports.start = (manager) ->
 	if started
 		return Promise.resolve()
 
 	started = true
 
-	console.log('Stopping connman..')
-
-	systemd.stop('connman.service')
+	console.log("Stopping service, starting hotspot")
+	
+	manager.stop()
 	.delay(2000)
 	.then ->
 		execAsync('rfkill unblock wifi')

		dnsmasq.stop()
	]
	.then ->
		systemd.start('connman.service')

	.then ->
		hostapd.start()
	.then ->
		dnsmasq.start()		

exports.stop = (manager) ->
	if not started
		return Promise.resolve()

	console.log("Starting service, stopping hotspot")

	started = false

