I have a service in linux called appSevice, when I start/stop with these cmd, it works :

```
sudo systemctl start appSevice.service;
sudo systemctl stop  appSevice.service;

```

but the problem when I tried to execute these from JAVA code, I tried form exemple :

```
Runtime.getRuntime().exec("sudo systemctl stop appService.service");

```

but it didnt work, I can that the service is always running, any suggestions please to resolve this problem ?

```
service :

[Service]
Type=simple
ExecStart=/opt/soft/v1/launchAppService.ksh start
User=Jms-User
Restart=on-abort

```