mirror of
https://github.com/itdoginfo/podkop.git
synced 2025-12-06 11:36:50 +03:00
fix: change command fir start/stop/restart actions
This commit is contained in:
@@ -44,9 +44,24 @@ export const PodkopShellMethods = {
|
||||
group,
|
||||
proxy,
|
||||
]),
|
||||
restart: async () => callBaseMethod<unknown>(Podkop.AvailableMethods.RESTART),
|
||||
start: async () => callBaseMethod<unknown>(Podkop.AvailableMethods.START),
|
||||
stop: async () => callBaseMethod<unknown>(Podkop.AvailableMethods.STOP),
|
||||
restart: async () =>
|
||||
callBaseMethod<unknown>(
|
||||
Podkop.AvailableMethods.RESTART,
|
||||
[],
|
||||
'/etc/init.d/podkop',
|
||||
),
|
||||
start: async () =>
|
||||
callBaseMethod<unknown>(
|
||||
Podkop.AvailableMethods.START,
|
||||
[],
|
||||
'/etc/init.d/podkop',
|
||||
),
|
||||
stop: async () =>
|
||||
callBaseMethod<unknown>(
|
||||
Podkop.AvailableMethods.STOP,
|
||||
[],
|
||||
'/etc/init.d/podkop',
|
||||
),
|
||||
enable: async () =>
|
||||
callBaseMethod<unknown>(
|
||||
Podkop.AvailableMethods.ENABLE,
|
||||
|
||||
@@ -493,9 +493,21 @@ var PodkopShellMethods = {
|
||||
group,
|
||||
proxy
|
||||
]),
|
||||
restart: async () => callBaseMethod(Podkop.AvailableMethods.RESTART),
|
||||
start: async () => callBaseMethod(Podkop.AvailableMethods.START),
|
||||
stop: async () => callBaseMethod(Podkop.AvailableMethods.STOP),
|
||||
restart: async () => callBaseMethod(
|
||||
Podkop.AvailableMethods.RESTART,
|
||||
[],
|
||||
"/etc/init.d/podkop"
|
||||
),
|
||||
start: async () => callBaseMethod(
|
||||
Podkop.AvailableMethods.START,
|
||||
[],
|
||||
"/etc/init.d/podkop"
|
||||
),
|
||||
stop: async () => callBaseMethod(
|
||||
Podkop.AvailableMethods.STOP,
|
||||
[],
|
||||
"/etc/init.d/podkop"
|
||||
),
|
||||
enable: async () => callBaseMethod(
|
||||
Podkop.AvailableMethods.ENABLE,
|
||||
[],
|
||||
|
||||
Reference in New Issue
Block a user